mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 04:43: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:
parent
31cee08b64
commit
6a772451f3
@ -434,7 +434,7 @@ static void validateLength(CharSet* toCharSet, SLONG toLength, const UCHAR* star
|
|||||||
if (toCharSet->isMultiByte() &&
|
if (toCharSet->isMultiByte() &&
|
||||||
!(toCharSet->getFlags() & CHARSET_LEGACY_SEMANTICS) &&
|
!(toCharSet->getFlags() & CHARSET_LEGACY_SEMANTICS) &&
|
||||||
toLength != 31 && // allow non CHARSET_LEGACY_SEMANTICS to be used as connection charset
|
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));
|
err(Arg::Gds(isc_arith_except) << Arg::Gds(isc_transliteration_failed));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user