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

Reduce number of warnings for 64-bit targets.

This commit is contained in:
dimitr 2008-05-12 05:59:40 +00:00
parent f027b761a5
commit b22ca46d6c

View File

@ -117,7 +117,7 @@ static bool texttype_unicode_init(texttype* tt,
bool LCICU_setup_attributes(const ASCII* name, const ASCII* charSetName, const ASCII* configInfo, bool LCICU_setup_attributes(const ASCII* name, const ASCII* charSetName, const ASCII* configInfo,
const Firebird::string& specificAttributes, Firebird::string& newSpecificAttributes) const Firebird::string& specificAttributes, Firebird::string& newSpecificAttributes)
{ {
int len = strlen(name); const size_t len = strlen(name);
if (len > 8 && strcmp(name + len - 8, "_UNICODE") == 0) if (len > 8 && strcmp(name + len - 8, "_UNICODE") == 0)
{ {
@ -143,8 +143,6 @@ bool LCICU_texttype_init(texttype* tt,
ULONG specificAttributesLength, ULONG specificAttributesLength,
const ASCII* configInfo) const ASCII* configInfo)
{ {
int len = strlen(name);
if (strcmp(name, charSetName) == 0) if (strcmp(name, charSetName) == 0)
{ {
return texttype_default_init( return texttype_default_init(
@ -152,6 +150,8 @@ bool LCICU_texttype_init(texttype* tt,
specificAttributes, specificAttributesLength, configInfo); specificAttributes, specificAttributesLength, configInfo);
} }
const size_t len = strlen(name);
if (len > 8 && strcmp(name + len - 8, "_UNICODE") == 0) if (len > 8 && strcmp(name + len - 8, "_UNICODE") == 0)
{ {
return texttype_unicode_init( return texttype_unicode_init(