From a46a1f5f34d281ecede1b446fea7be8834496da5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 4 May 2019 13:02:15 +0100 Subject: Minor change to bit_field assignment rules --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 07aee1a7b..2ef0a6e56 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -264,7 +264,7 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs) } BigInt imax = big_int_make_u64(imax_); - if (big_int_cmp(&i, &imax) >= 0) { + if (big_int_cmp(&i, &imax) <= 0) { return rhs->type; } } -- cgit v1.2.3