Compare commits

..

1 Commits

Author SHA1 Message Date
c7056f2520 Compile the compiler
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 6m10s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 6m8s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 5m51s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 18m34s
2025-06-20 10:58:08 -06:00

View File

@ -7339,7 +7339,7 @@ fn void emit_value(Module* module, Value* value, TypeKind type_kind, bool expect
{
assert(unary_type->id == TypeId::integer);
auto is_signed = unary_type->integer.is_signed;
auto max_value = integer_max_value(resolved_value_type->integer.bit_count, is_signed);
auto max_value = integer_max_value(unary_type->integer.bit_count, is_signed);
auto constant_integer = LLVMConstInt(resolved_value_type->llvm.abi, max_value, is_signed);
llvm_value = constant_integer;
} break;