[Perl/perl5] 7bc2bd: Augment overload::Method docs

2022-02-02 Thread Hugo van der Sanden via perl5-changes
  Branch: refs/heads/overload_Method
  Home:   https://github.com/Perl/perl5
  Commit: 7bc2bd0fb680788ae36d56035f977993cd13dd58
  
https://github.com/Perl/perl5/commit/7bc2bd0fb680788ae36d56035f977993cd13dd58
  Author: Hugo van der Sanden 
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
M lib/overload.pm

  Log Message:
  ---
  Augment overload::Method docs




[Perl/perl5] e1c60a: toke.c: Fix potential C sign error

2022-02-02 Thread Karl Williamson via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e1c60a5de80391903ce3f33e708d032cd2ba9b0a
  
https://github.com/Perl/perl5/commit/e1c60a5de80391903ce3f33e708d032cd2ba9b0a
  Author: Karl Williamson 
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
M toke.c

  Log Message:
  ---
  toke.c: Fix potential C sign error

Taking (UV)(* char) isn't what was meant.  Instead it should be
   (UV) * (U8 *)(char).
(and the UV cast becomes irrelevant in this case).

If the C compiler defaults char to unsigned, it doesn't matter.  Nor
does it matter if the char value is positive.  But it gives the wrong
result when 'char' means 'signed char' and the value is negative.

Experimentally adding non-ASCII brackets to this code showed up this
error.