Michael Stefaniuc : rsaenh: Do not cast zero.

Alexandre Julliard julliard at winehq.org
Mon Dec 8 09:46:01 CST 2008


Module: wine
Branch: master
Commit: 50b45a78a34f1c127fb16ee8e2a6ffd356018bec
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=50b45a78a34f1c127fb16ee8e2a6ffd356018bec

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Dec  8 04:05:53 2008 +0100

rsaenh: Do not cast zero.

---

 dlls/rsaenh/md2.c |    2 +-
 dlls/rsaenh/mpi.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/rsaenh/md2.c b/dlls/rsaenh/md2.c
index 947a359..187d114 100644
--- a/dlls/rsaenh/md2.c
+++ b/dlls/rsaenh/md2.c
@@ -77,7 +77,7 @@ static void md2_compress(md2_state *md2)
        md2->X[32+j] = md2->X[j] ^ md2->X[16+j];
    }
 
-   t = (unsigned char)0;
+   t = 0;
 
    /* do 18 rounds */
    for (j = 0; j < 18; j++) {
diff --git a/dlls/rsaenh/mpi.c b/dlls/rsaenh/mpi.c
index 5e10ec8..e4e8ab8 100644
--- a/dlls/rsaenh/mpi.c
+++ b/dlls/rsaenh/mpi.c
@@ -1009,7 +1009,7 @@ mp_count_bits (const mp_int * a)
   
   /* take the last digit and count the bits in it */
   q = a->dp[a->used - 1];
-  while (q > ((mp_digit) 0)) {
+  while (q > 0) {
     ++r;
     q >>= ((mp_digit) 1);
   }
@@ -4351,7 +4351,7 @@ s_mp_sqr (const mp_int * a, mp_int * b)
       u       = (mp_digit)(r >> ((mp_word) DIGIT_BIT));
     }
     /* propagate upwards */
-    while (u != ((mp_digit) 0)) {
+    while (u != 0) {
       r       = ((mp_word) *tmpt) + ((mp_word) u);
       *tmpt++ = (mp_digit) (r & ((mp_word) MP_MASK));
       u       = (mp_digit)(r >> ((mp_word) DIGIT_BIT));




More information about the wine-cvs mailing list