develooper Front page | perl.perl5.changes | Postings from September 2021

[Perl/perl5] e72852: utf8.h: Rmv redundant asserts

From:
Karl Williamson via perl5-changes
Date:
September 16, 2021 12:48
Subject:
[Perl/perl5] e72852: utf8.h: Rmv redundant asserts
Message ID:
Perl/perl5/push/refs/heads/blead/3c7193-e72852@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e72852772d35fa07c6f4def68643512939de4443
      https://github.com/Perl/perl5/commit/e72852772d35fa07c6f4def68643512939de4443
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M utf8.h

  Log Message:
  -----------
  utf8.h: Rmv redundant asserts

These macros asserted both that the passed in parameter occupied no more
than a byte, and that it wasn't a pointer.  But pointers occupy more
than a byte, so if it passes the first check, meaning it occupies only a
byte, it will necessarily pass the second, making that check unnecessary.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About