mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix typos, UBs and warnings (#625)
This commit is contained in:
parent
5a47495d87
commit
0578cb4a42
19 changed files with 193 additions and 139 deletions
|
@ -487,7 +487,7 @@ Expr* parse_expr100(Lexer& lex, CodeBlob& code, bool nv) {
|
|||
Expr* res = new Expr{Expr::_Const, lex.cur().loc};
|
||||
res->flags = Expr::_IsRvalue;
|
||||
res->intval = td::string_to_int256(lex.cur().str);
|
||||
if (res->intval.is_null()) {
|
||||
if (res->intval.is_null() || !res->intval->signed_fits_bits(257)) {
|
||||
lex.cur().error_at("invalid integer constant `", "`");
|
||||
}
|
||||
res->e_type = TypeExpr::new_atomic(_Int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue