summaryrefslogtreecommitdiff
path: root/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/libconfig/libconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c
index 0942241c2..696f5fc08 100644
--- a/3rdparty/libconfig/libconfig.c
+++ b/3rdparty/libconfig/libconfig.c
@@ -192,7 +192,7 @@ static void __config_write_value(const struct config_t *config,
switch(format)
{
case CONFIG_FORMAT_HEX:
- fprintf(stream, "0x%X", value->ival);
+ fprintf(stream, "0x%X", (unsigned int)(value->ival));
break;
case CONFIG_FORMAT_DEFAULT:
@@ -207,7 +207,7 @@ static void __config_write_value(const struct config_t *config,
switch(format)
{
case CONFIG_FORMAT_HEX:
- fprintf(stream, "0x" INT64_HEX_FMT "L", value->llval);
+ fprintf(stream, "0x" INT64_HEX_FMT "L", (unsigned long long)(value->llval));
break;
case CONFIG_FORMAT_DEFAULT:
@@ -291,7 +291,7 @@ static void __config_write_value(const struct config_t *config,
if(c >= ' ')
fputc(c, stream);
else
- fprintf(stream, "\\x%02X", c);
+ fprintf(stream, "\\x%02X", (unsigned int)(c));
}
}
}