mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Fix for signed int promotion
This commit is contained in:
parent
c424ce99b7
commit
0b4e911a3e
1 changed files with 2 additions and 2 deletions
|
@ -2536,8 +2536,8 @@ object FUNC_OP(void *data, common_type *x, object y) { \
|
|||
int tmpy = obj_obj2int(y); \
|
||||
mp_int tmp2; \
|
||||
mp_init(&tmp2); \
|
||||
mp_set_int(&tmp2, tmpy); \
|
||||
if (y < 0) { tmp2.sign = MP_NEG; } \
|
||||
mp_set_int(&tmp2, abs(tmpy)); \
|
||||
if (tmpy < 0) { mp_neg(&tmp2, &tmp2); } \
|
||||
mp_init_copy(&bn_tmp, &(x->bignum_t.bn)); \
|
||||
BN_OP(&bn_tmp, &tmp2, &(x->bignum_t.bn)); \
|
||||
} else if (tx == bignum_tag && ty == double_tag) { \
|
||||
|
|
Loading…
Add table
Reference in a new issue