Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d35fffc19e9fcc44e479e3e3ce83778620d537ff
      
https://github.com/Perl/perl5/commit/d35fffc19e9fcc44e479e3e3ce83778620d537ff
  Author: Karl Williamson <k...@cpan.org>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Remove unnecessary assertions

These assertions come from a time that the parameter they each check was
an 'unsigned', even though the legal values were actually between 0 and
at most about 12, depending on the platform.   The check just validated
that the value was in the platform's proper range.  Later, an enum was
created to represent this information, and the parameter's type was
changed to be this enum.  So the compiler ensures that the value is in
range, and there's no need for us to explicitly check it as well.


Reply via email to