Skip to content

Commit 80c4704

Browse files
peterepull[bot]
authored andcommitted
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 22e4438 commit 80c4704

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)