diff options
author | Karl Williamson <khw@cpan.org> | 2018-02-22 21:45:42 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-02-22 21:51:47 -0700 |
commit | 2b1f9c7143e15e2b934249f7fadadf156e31d40e (patch) | |
tree | 42f33a71d2968d6e0298e42d87835cbcb934eedc /proto.h | |
parent | a565fc6878252f7bedac409aee27aeb3fb9d7920 (diff) | |
download | perl-2b1f9c7143e15e2b934249f7fadadf156e31d40e.tar.gz |
PATCH: [perl #132900] Blead Breaks CPAN: FELIPE/Crypt-Perl
The root cause of this was using a 'char' where it should have been
'U8'. I changed the signatures so that all the related functions take
and return U8's, and the compiler detects what should be cast to/from
char. The functions all deal with byte bit patterns, so unsigned is the
appropriate declaration.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5595,7 +5595,7 @@ STATIC char * S_find_next_ascii(char* s, const char * send, const bool is_utf8) #define PERL_ARGS_ASSERT_FIND_NEXT_ASCII \ assert(s); assert(send) -STATIC char * S_find_next_masked(char * s, const char * send, const U8 byte, const U8 mask) +STATIC U8 * S_find_next_masked(U8 * s, const U8 * send, const U8 byte, const U8 mask) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_FIND_NEXT_MASKED \ assert(s); assert(send) @@ -5605,7 +5605,7 @@ STATIC char * S_find_next_non_ascii(char* s, const char * send, const bool is_ut #define PERL_ARGS_ASSERT_FIND_NEXT_NON_ASCII \ assert(s); assert(send) -STATIC char * S_find_span_end(char* s, const char * send, const char span_byte) +STATIC U8 * S_find_span_end(U8* s, const U8 * send, const U8 span_byte) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_FIND_SPAN_END \ assert(s); assert(send) |