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

Sign extension problem, thanks Bill Oliver.

This commit is contained in:
robocop 2009-06-13 05:19:59 +00:00
parent b7eaacf362
commit fa23490f10

View File

@ -373,7 +373,7 @@ const UCHAR dtype_max_comp = dtype_d_float;
inline USHORT TEXT_LEN(const dsc* desc)
{
return ((desc->dsc_dtype == dtype_text) ? desc->dsc_length :
(desc->dsc_dtype == dtype_cstring) ? desc->dsc_length - 1 : desc->dsc_length - sizeof(USHORT));
(desc->dsc_dtype == dtype_cstring) ? desc->dsc_length - 1u : desc->dsc_length - sizeof(USHORT));
}