Просмотр исходного кода
Fix 64-bit portability problem.
Patch from Jonathan Wakely. Original explanation follows:
The attached patch fixes a 64 bit portability problem where
std::string::size_type is assigned to unsigned, which is shorter
than size_t on x86-64 and so will be truncated. This means the
following comparison to std::string::npos is always false.
[SVN r27772]