aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/std.c b/std.c
index 5151f6d..6b6dbbb 100644
--- a/std.c
+++ b/std.c
@@ -126,7 +126,10 @@ string_downcase(String str)
{
for (size_t i = 0; i < str.len; i++) {
if (str.buf[i] >= 'A' && str.buf[i] <= 'Z') {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wconversion"
str.buf[i] += 'a' - 'A';
+#pragma GCC diagnostic pop
}
}
}