aboutsummaryrefslogtreecommitdiff
path: root/std.c
diff options
context:
space:
mode:
authorMario Forzanini <mario.forzanini@studenti.unimi.it>2024-06-10 10:15:59 +0200
committerMario Forzanini <mario.forzanini@studenti.unimi.it>2024-06-10 10:15:59 +0200
commit49c35e79910f35b85c3f46ccc338b6bfc362c5d2 (patch)
tree94df9f80aa97183afe5d7e7d805ea24d6776ff5f /std.c
parent13f31c76a40255e84eba5515ca2ec0c25161d84d (diff)
Ignore conversion warningHEADmaster
Diffstat (limited to 'std.c')
-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
}
}
}