Skip to content

Commit a9bc04b

Browse files
committed
Fix incorrect format placeholders
The fields of NLSVERSIONINFOEX are of type DWORD, which is unsigned long, so the results of the computations being printed are also of type unsigned long.
1 parent 069ef25 commit a9bc04b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
17781778
collcollate,
17791779
GetLastError())));
17801780
}
1781-
collversion = psprintf("%ld.%ld,%ld.%ld",
1781+
collversion = psprintf("%lu.%lu,%lu.%lu",
17821782
(version.dwNLSVersion >> 8) & 0xFFFF,
17831783
version.dwNLSVersion & 0xFF,
17841784
(version.dwDefinedVersion >> 8) & 0xFFFF,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy