aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 6385aa1aa7..a389d15fc3 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -1229,7 +1229,7 @@ ruby_vsnprintf(char *str, size_t n, const char *fmt, va_list ap)
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = n - 1;
f.vwrite = BSD__sfvwrite;
- ret = BSD_vfprintf(&f, fmt, ap);
+ ret = (int)BSD_vfprintf(&f, fmt, ap);
*f._p = 0;
return (ret);
}
@@ -1249,7 +1249,7 @@ ruby_snprintf(char *str, size_t n, char const *fmt, ...)
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = n - 1;
f.vwrite = BSD__sfvwrite;
- ret = BSD_vfprintf(&f, fmt, ap);
+ ret = (int)BSD_vfprintf(&f, fmt, ap);
*f._p = 0;
va_end(ap);
return (ret);