aboutsummaryrefslogtreecommitdiff
path: root/src/include/common/unicode_case.h
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-03-08 15:58:32 -0800
committerJeff Davis <jdavis@postgresql.org>2024-03-08 16:00:46 -0800
commit33ee2550d30bebb938238846369b2aae10e7f00f (patch)
treee6fad4773978bc9e1cd861cc080140f353ac5b07 /src/include/common/unicode_case.h
parentbe41a9b0380778a07386208afbf3f41ba7286cf3 (diff)
downloadpostgresql-33ee2550d30bebb938238846369b2aae10e7f00f.tar.gz
postgresql-33ee2550d30bebb938238846369b2aae10e7f00f.zip
Fix type signedness error in commit 5c40364dd6.
Use ssize_t instead of size_t. Discussion: https://postgr.es/m/b20d6d97-7338-48ea-ba33-837a1c8ef98e@iki.fi Reported-by: Heikki Linnakangas
Diffstat (limited to 'src/include/common/unicode_case.h')
-rw-r--r--src/include/common/unicode_case.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/common/unicode_case.h b/src/include/common/unicode_case.h
index ad6f62cc41d..df36d8db213 100644
--- a/src/include/common/unicode_case.h
+++ b/src/include/common/unicode_case.h
@@ -20,8 +20,8 @@ pg_wchar unicode_lowercase_simple(pg_wchar ucs);
pg_wchar unicode_titlecase_simple(pg_wchar ucs);
pg_wchar unicode_uppercase_simple(pg_wchar ucs);
size_t unicode_strlower(char *dst, size_t dstsize, const char *src,
- size_t srclen);
+ ssize_t srclen);
size_t unicode_strupper(char *dst, size_t dstsize, const char *src,
- size_t srclen);
+ ssize_t srclen);
#endif /* UNICODE_CASE_H */