summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index c4f4938cc6..aab3d66483 100644
--- a/error.c
+++ b/error.c
@@ -99,7 +99,7 @@ compile_warn_print(const char *file, int line, const char *fmt, va_list args)
int len;
compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}
@@ -142,7 +142,7 @@ warn_print(const char *fmt, va_list args)
int len;
err_snprintf(buf, BUFSIZ, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}