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

+1-1
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)