Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c07f6db2403a851ca49893c4b5a7fc16dc61a110
      
https://github.com/Perl/perl5/commit/c07f6db2403a851ca49893c4b5a7fc16dc61a110
  Author: Lukas Mai <[email protected]>
  Date:   2026-02-08 (Sun, 08 Feb 2026)

  Changed paths:
    M pp_pack.c

  Log Message:
  -----------
  utf8_to_bytes: take U8 * directly, not char *

Previously, the buf parameter was declared as `char *`, but the function
body only used it cast to `U8 *`. Declaring the parameter as `U8 *`
lets us get rid of those casts.

(It does require some extra casts in callers that used to pass in a
`char *`, but it also saves casts in callers that used to declare a
`U8 *`, cast it to `char *` to pass it to utf8_to_bytes(), which would
then cast back to `U8 *`. Anyway, the net number of redundant casts is
lower now.)



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to