aboutsummaryrefslogtreecommitdiff
path: root/src/libmp/port/mptouv.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 21:41:16 +0000
committerrsc <devnull@localhost>2006-04-20 21:41:16 +0000
commitbcb7f64ea55480585b546b462a3a2891765c400b (patch)
treedfd4c7cdff27a0bb39f14d50ff008767da7ce00e /src/libmp/port/mptouv.c
parent35afcc6c772f327cb612286430534281918e74f9 (diff)
downloadplan9port-bcb7f64ea55480585b546b462a3a2891765c400b.tar.gz
plan9port-bcb7f64ea55480585b546b462a3a2891765c400b.tar.bz2
plan9port-bcb7f64ea55480585b546b462a3a2891765c400b.zip
shut up gcc
Diffstat (limited to 'src/libmp/port/mptouv.c')
-rw-r--r--src/libmp/port/mptouv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmp/port/mptouv.c b/src/libmp/port/mptouv.c
index eb663f38..9cb74ea4 100644
--- a/src/libmp/port/mptouv.c
+++ b/src/libmp/port/mptouv.c
@@ -22,10 +22,16 @@ uvtomp(uvlong v, mpint *b)
return b;
for(s = 0; s < VLDIGITS && v != 0; s++){
b->p[s] = v;
+ /* !@*$&!@$ gcc gives warnings about the >> here
+ * when running on 64-bit machines, even though
+ * it's in dead code. fake it out with two shifts.
if(sizeof(mpdigit) == sizeof(uvlong))
v = 0;
else
v >>= sizeof(mpdigit)*8;
+ */
+ v >>= sizeof(mpdigit)*4;
+ v >>= sizeof(mpdigit)*4;
}
b->top = s;
return b;