Skip to content

PCRE portability fix - #691

Merged
ryfactor merged 1 commit into
Attnam:masterfrom
zenorogue:pcreport
Oct 15, 2026
Merged

ryfactor merged 1 commit into
Attnam:masterfrom
zenorogue:pcreport

Conversation

@zenorogue

Copy link
Copy Markdown
Contributor

Found a compiler error when trying to compile the new PCRE2 version using mingw64:

In file included from ../audio/audio.h:31,
                 from ../Main/Source/game.cpp:39:
../FeLib/Include/festring.h: In instantiation of ‘festringpile& festringpile::operator+(type) [with type = long long unsigned int]’:
../Main/Source/game.cpp:1363:54:   required from here
 1363 |       afsFullProblems.push_back(festring()+"offset:"+iErrOffset);
      |                                                      ^~~~~~~~~~
../FeLib/Include/festring.h:147:47: error: ambiguous overload for ‘operator<<’ (operand types are ‘festring’ and ‘long long unsigned int’)
  147 |   festringpile& operator+(type What) { String << What; return *this; }

festring does not know what to do with iErrOffset which is long long unsigned int; fixed by casting iErrOffset to int.

@ryfactor
ryfactor merged commit f29420e into Attnam:master Oct 15, 2026
4 checks passed
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.

2 participants