make comperasion warning go away

This commit is contained in:
anon
2024-07-15 21:11:04 +02:00
parent 7d50234797
commit ead1ecb2ff

@ -164,9 +164,9 @@ declaration:
if (validate_array_size($4)) { if (validate_array_size($4)) {
break; break;
} }
if ($4 < $8.len) { if ((unsigned long long)$4 < $8.len) {
issue_warning("you are a nigger"); issue_warning("declared array size is smaller than assigned literal, this will cause truncation");
} } // XXX actual truncation
$$.name = make_scoped_name(scope, $6); $$.name = make_scoped_name(scope, $6);
$$.elements = $4; $$.elements = $4;
$$.array_value = $8.data; $$.array_value = $8.data;