Skip to content

Commit

Permalink
Fix build after version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Dec 27, 2024
1 parent cde0884 commit df8b1df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ add_library(PCRE.NET.Native SHARED
PCRE/src/pcre2_chartables.c
PCRE/src/pcre2_chkdint.c
PCRE/src/pcre2_compile.c
PCRE/src/pcre2_compile_class.c
PCRE/src/pcre2_config.c
PCRE/src/pcre2_context.c
PCRE/src/pcre2_convert.c
Expand Down
1 change: 1 addition & 0 deletions src/PCRE.NET.Native/PCRE.NET.Native.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ClCompile Include="..\PCRE\src\pcre2_chartables.c" />
<ClCompile Include="..\PCRE\src\pcre2_chkdint.c" />
<ClCompile Include="..\PCRE\src\pcre2_compile.c" />
<ClCompile Include="..\PCRE\src\pcre2_compile_class.c" />
<ClCompile Include="..\PCRE\src\pcre2_config.c" />
<ClCompile Include="..\PCRE\src\pcre2_context.c" />
<ClCompile Include="..\PCRE\src\pcre2_convert.c" />
Expand Down
2 changes: 2 additions & 0 deletions src/PCRE.NET.Native/pcre2config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/* ReSharper disable All */

#define HAVE_ASSERT_H 1
#define HAVE_BUILTIN_ASSUME
#define HAVE_INTTYPES_H 1
#define HAVE_LIMITS_H 1
#define HAVE_MEMMOVE 1
Expand Down
2 changes: 1 addition & 1 deletion src/PCRE/src/pcre2_jit_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ switch(*cc)
if (max == 0)
return (*cc == OP_CRRANGE) ? 2 : 1;
max -= min;
if (max > (*cc == OP_CRRANGE ? 0 : 1))
if (max > (sljit_u32)(*cc == OP_CRRANGE ? 0 : 1))
max = 2;
return max;

Expand Down

0 comments on commit df8b1df

Please sign in to comment.