8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Strange warning: looks like the result of USHORT/UCHAR is being promoted to int and this causes a signed/unsigned wng.

This commit is contained in:
robocop 2008-12-31 04:11:24 +00:00
parent 31cee08b64
commit 6a772451f3

View File

@ -434,7 +434,7 @@ static void validateLength(CharSet* toCharSet, SLONG toLength, const UCHAR* star
if (toCharSet->isMultiByte() &&
!(toCharSet->getFlags() & CHARSET_LEGACY_SEMANTICS) &&
toLength != 31 && // allow non CHARSET_LEGACY_SEMANTICS to be used as connection charset
toCharSet->length(toLength, start, false) > to_size / toCharSet->maxBytesPerChar())
toCharSet->length(toLength, start, false) > (ULONG) to_size / toCharSet->maxBytesPerChar())
{
err(Arg::Gds(isc_arith_except) << Arg::Gds(isc_transliteration_failed));
}