From ead1ecb2ffaf70b95dcea87d6aa2dca264b57888 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 15 Jul 2024 21:11:04 +0200 Subject: [PATCH] make comperasion warning go away --- source/eaxhla.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/eaxhla.y b/source/eaxhla.y index 784b80c..3d898e9 100644 --- a/source/eaxhla.y +++ b/source/eaxhla.y @@ -164,9 +164,9 @@ declaration: if (validate_array_size($4)) { break; } - if ($4 < $8.len) { - issue_warning("you are a nigger"); - } + if ((unsigned long long)$4 < $8.len) { + issue_warning("declared array size is smaller than assigned literal, this will cause truncation"); + } // XXX actual truncation $$.name = make_scoped_name(scope, $6); $$.elements = $4; $$.array_value = $8.data;