diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-19 07:39:17 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-27 12:30:46 +0100 |
| commit | 4532c77d9ae8ff215190bd8093aa41f66c4a06b2 (patch) | |
| tree | 7913e5b4a008a3e5ee944f460f8679e7ad5f90c1 | |
| parent | 4e9381c8197dc7aa89ed56d094f6760cd6831951 (diff) | |
| download | miasm-4532c77d9ae8ff215190bd8093aa41f66c4a06b2.tar.gz miasm-4532c77d9ae8ff215190bd8093aa41f66c4a06b2.zip | |
Jitter: fix bn
| -rw-r--r-- | miasm/jitter/bn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miasm/jitter/bn.c b/miasm/jitter/bn.c index dd4f34ef..43e552a4 100644 --- a/miasm/jitter/bn.c +++ b/miasm/jitter/bn.c @@ -67,10 +67,10 @@ bn_t bignum_from_int(DTYPE_TMP i) n.array[0] = (i & 0x0000ffff); n.array[1] = (i & 0xffff0000) >> 16; #elif (WORD_SIZE == 4) - n.array[0] = i; + n.array[0] = (DTYPE)i; DTYPE_TMP num_32 = 32; DTYPE_TMP tmp = i >> num_32; /* bit-shift with U64 operands to force 64-bit results */ - n.array[1] = tmp; + n.array[1] = (DTYPE)tmp; #endif #endif @@ -94,10 +94,10 @@ bn_t bignum_from_uint64(uint64_t i) n.array[0] = (i & 0x0000ffff); n.array[1] = (i & 0xffff0000) >> 16; #elif (WORD_SIZE == 4) - n.array[0] = i; + n.array[0] = (DTYPE)i; DTYPE_TMP num_32 = 32; DTYPE_TMP tmp = i >> num_32; /* bit-shift with U64 operands to force 64-bit results */ - n.array[1] = tmp; + n.array[1] = (DTYPE)tmp; #endif #endif @@ -242,7 +242,7 @@ bn_t bignum_inc(bn_t n) //require(n, "n is null"); DTYPE res; - DTYPE_TMP tmp; /* copy of n */ + DTYPE tmp; /* copy of n */ int i; for (i = 0; i < BN_ARRAY_SIZE; ++i) { |