diff options
author | Thierry Crozat | 2012-12-02 22:56:49 +0000 |
---|---|---|
committer | Thierry Crozat | 2012-12-02 22:57:15 +0000 |
commit | 90788da0fc74472593bceee4f0a1549e925c8e73 (patch) | |
tree | d251c3759892b2222516b29daa2b67caf276aa81 | |
parent | ea024cd2030f84f718346da4d9888a74f5315539 (diff) | |
download | scummvm-rg350-90788da0fc74472593bceee4f0a1549e925c8e73.tar.gz scummvm-rg350-90788da0fc74472593bceee4f0a1549e925c8e73.tar.bz2 scummvm-rg350-90788da0fc74472593bceee4f0a1549e925c8e73.zip |
QUEEN: Workaround a bug in the llvm-g++ compiler
That code made llvm-g++ 4.2.1 crash when compiling with
optimizations.
-rw-r--r-- | engines/queen/journal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/queen/journal.cpp b/engines/queen/journal.cpp index 704019641b..db06d540f5 100644 --- a/engines/queen/journal.cpp +++ b/engines/queen/journal.cpp @@ -400,7 +400,7 @@ static void removeLeadingAndTrailingSpaces(char *dst, size_t dstSize, const char while (src[lastNonSpaceIndex] == ' ') --lastNonSpaceIndex; - size_t newLen = lastNonSpaceIndex - firstNonSpaceIndex + 1; + uint newLen = lastNonSpaceIndex - firstNonSpaceIndex + 1; assert(newLen < dstSize); for (size_t i = 0; i < newLen; ++i) { dst[i] = src[firstNonSpaceIndex + i]; |