Skip to content

Conversation

mauke
Copy link
Contributor

@mauke mauke commented Sep 23, 2025

Otherwise gcc warns when building:

In file included from perl.h:4229,
                 from regexec.c:76:
regexec.c: In function ‘S_isWB’:
regexec.c:6276:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
 6276 |             assert(index+1 < C_ARRAY_LENGTH(WB_dfa_table));
      |                            ^

Fixes #23760.


  • This set of changes does not require a perldelta entry.

Otherwise gcc warns when building:

    In file included from perl.h:4229,
                     from regexec.c:76:
    regexec.c: In function ‘S_isWB’:
    regexec.c:6276:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
     6276 |             assert(index+1 < C_ARRAY_LENGTH(WB_dfa_table));
          |                            ^

Fixes Perl#23760.
@mauke mauke merged commit fb18145 into Perl:blead Sep 23, 2025
34 checks passed
@mauke mauke deleted the fix-23760-build-warnings branch September 23, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build warnings in regexec.c
2 participants