From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/libmp/port/mpright.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libmp/port/mpright.c') diff --git a/src/libmp/port/mpright.c b/src/libmp/port/mpright.c index 03039177..ee661d55 100644 --- a/src/libmp/port/mpright.c +++ b/src/libmp/port/mpright.c @@ -2,7 +2,7 @@ #include #include "dat.h" -// res = b >> shift +/* res = b >> shift */ void mpright(mpint *b, int shift, mpint *res) { @@ -15,7 +15,7 @@ mpright(mpint *b, int shift, mpint *res) return; } - // a negative right shift is a left shift + /* a negative right shift is a left shift */ if(shift < 0){ mpleft(b, -shift, res); return; @@ -27,13 +27,13 @@ mpright(mpint *b, int shift, mpint *res) r = shift - d*Dbits; l = Dbits - r; - // shift all the bits out == zero + /* shift all the bits out == zero */ if(d>=b->top){ res->top = 0; return; } - // special case digit shifts + /* special case digit shifts */ if(r == 0){ for(i = 0; i < b->top-d; i++) res->p[i] = b->p[i+d]; -- cgit v1.2.3