make comperasion warning go away
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user