no-integer-overflow
Forbid integer literal overflow
INFO
☑️ The predefined configuration "mslint:recommended"
enables this rule.
Rule details
ManiaScript only partially supports 64-bit integers. This rule prohibits literal integers above the 32-bit limit.
Example of incorrect code for this rule:
maniascript
main() {
2147483648;
-2147483649;
}
Example of correct code for this rule:
maniascript
main() {
2147483647;
-2147483648;
}