mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Remove some unnecessary casts in format arguments
We can use %zd or %zu directly, no need to cast to int. Conversely, some code was casting away from int when it could be using %d directly.
This commit is contained in:
@@ -959,8 +959,8 @@ pg_xml_init_library(void)
|
||||
if (sizeof(char) != sizeof(xmlChar))
|
||||
ereport(ERROR,
|
||||
(errmsg("could not initialize XML library"),
|
||||
errdetail("libxml2 has incompatible char type: sizeof(char)=%u, sizeof(xmlChar)=%u.",
|
||||
(int) sizeof(char), (int) sizeof(xmlChar))));
|
||||
errdetail("libxml2 has incompatible char type: sizeof(char)=%zu, sizeof(xmlChar)=%zu.",
|
||||
sizeof(char), sizeof(xmlChar))));
|
||||
|
||||
#ifdef USE_LIBXMLCONTEXT
|
||||
/* Set up libxml's memory allocation our way */
|
||||
|
||||
Reference in New Issue
Block a user