mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Minor fix to lb_big_int_to_llvm
This commit is contained in:
@@ -352,7 +352,7 @@ LLVMValueRef lb_big_int_to_llvm(lbModule *m, Type *original_type, BigInt const *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVMValueRef value = LLVMConstIntOfArbitraryPrecision(lb_type(m, original_type), cast(unsigned)(sz+7/8), cast(u64 *)rop);
|
LLVMValueRef value = LLVMConstIntOfArbitraryPrecision(lb_type(m, original_type), cast(unsigned)((sz+7)/8), cast(u64 *)rop);
|
||||||
if (big_int_is_neg(a)) {
|
if (big_int_is_neg(a)) {
|
||||||
value = LLVMConstNeg(value);
|
value = LLVMConstNeg(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user