summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-02-22 21:45:42 -0700
committerKarl Williamson <khw@cpan.org>2018-02-22 21:51:47 -0700
commit2b1f9c7143e15e2b934249f7fadadf156e31d40e (patch)
tree42f33a71d2968d6e0298e42d87835cbcb934eedc /proto.h
parenta565fc6878252f7bedac409aee27aeb3fb9d7920 (diff)
downloadperl-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index d6c36a08fa..c858fd3a0a 100644
--- a/proto.h
+++ b/proto.h
@@ -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)