mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Take advantage of the full range in name_length(), in case we need it.
In most platforms, int <==> ptrdiff_t
This commit is contained in:
parent
58d004a0c4
commit
821a83eaba
@ -102,7 +102,7 @@ char* exact_name_limit(char* const str, size_t bufsize)
|
||||
}
|
||||
|
||||
|
||||
USHORT name_length(const TEXT* const name)
|
||||
int name_length(const TEXT* const name)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
|
@ -38,7 +38,7 @@ namespace fb_utils
|
||||
str.rtrim();
|
||||
}
|
||||
char* exact_name_limit(char* const str, size_t bufsize);
|
||||
USHORT name_length(const TEXT* const name);
|
||||
int name_length(const TEXT* const name);
|
||||
} // namespace fb_utils
|
||||
|
||||
#endif // INCLUDE_UTILS_PROTO_H
|
||||
|
Loading…
Reference in New Issue
Block a user