mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
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.
This commit is contained in:
@ -1778,7 +1778,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
|
|||||||
collcollate,
|
collcollate,
|
||||||
GetLastError())));
|
GetLastError())));
|
||||||
}
|
}
|
||||||
collversion = psprintf("%ld.%ld,%ld.%ld",
|
collversion = psprintf("%lu.%lu,%lu.%lu",
|
||||||
(version.dwNLSVersion >> 8) & 0xFFFF,
|
(version.dwNLSVersion >> 8) & 0xFFFF,
|
||||||
version.dwNLSVersion & 0xFF,
|
version.dwNLSVersion & 0xFF,
|
||||||
(version.dwDefinedVersion >> 8) & 0xFFFF,
|
(version.dwDefinedVersion >> 8) & 0xFFFF,
|
||||||
|
Reference in New Issue
Block a user