From 6a772451f3ee4b4dcc959699c94b151f5015d385 Mon Sep 17 00:00:00 2001 From: robocop Date: Wed, 31 Dec 2008 04:11:24 +0000 Subject: [PATCH] Strange warning: looks like the result of USHORT/UCHAR is being promoted to int and this causes a signed/unsigned wng. --- src/jrd/cvt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/cvt.cpp b/src/jrd/cvt.cpp index b833622f8b..3d02b0d780 100644 --- a/src/jrd/cvt.cpp +++ b/src/jrd/cvt.cpp @@ -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)); }