From: David Flynn <[EMAIL PROTECTED]>
Use of signed values requires a signextension instruction if the int type
is not the same size as the void* type.
NB, uintptr_t may be a better choice
Signed-off-by: David Flynn <[EMAIL PROTECTED]>
---
schroedinger/schroarith.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/schroedinger/schroarith.h b/schroedinger/schroarith.h
index ca3c84a..6e19eb9 100644
--- a/schroedinger/schroarith.h
+++ b/schroedinger/schroarith.h
@@ -154,8 +154,8 @@ static int
_schro_arith_decode_bit (SchroArith *arith, int i)
{
unsigned int range_x_prob;
- int value;
- int lut_index;
+ unsigned int value;
+ unsigned int lut_index;
range_x_prob = (arith->range[1] * arith->probabilities[i]) >> 16;
lut_index = arith->probabilities[i]>>8;
--
1.5.5
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel