Fix some picky compiler warnings kindly provided by Borland C++ 5.5
[u/mdw/putty] / sshrsa.c
index 71e1d63..3a017c2 100644 (file)
--- a/sshrsa.c
+++ b/sshrsa.c
@@ -126,7 +126,8 @@ static void bigmod(unsigned short *a, unsigned short *m, int len)
            q--;
            t -= m1;
            r = (r + m0) & 0xffff; /* overflow? */
-           if (r >= m0 && t > ((unsigned long) r << 16) + a[i+1])
+           if (r >= (unsigned long)m0 &&
+                t > ((unsigned long) r << 16) + a[i+1])
                q--;
        }