Changeset 598
- Timestamp:
- 1999-09-17T10:11:28+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/hashfile/hashfile.cpp
r535 r598 75 75 int carry = 0; 76 76 int num = 0; 77 unsignedint i = 0;77 int i = 0; 78 78 unsigned int len = 0; // the last non-zero digit 79 79 … … 89 89 } 90 90 91 i= 0;91 unsigned int j = 0; 92 92 len = 0; 93 while (( i < a.len) || (i< b.len)) {93 while ((j < a.len) || (j < b.len)) { 94 94 num = -carry; 95 if ( i < a.len) num += a.num[i];96 if ( i < b.len) num -= b.num[i];95 if (j < a.len) num += a.num[j]; 96 if (j < b.len) num -= b.num[j]; 97 97 98 98 if (num < 0) { … … 103 103 } 104 104 105 a.num[ i] = (unsigned char) num;105 a.num[j] = (unsigned char) num; 106 106 107 i++;108 if (num != 0) len = i;107 j++; 108 if (num != 0) len = j; 109 109 } 110 110
Note:
See TracChangeset
for help on using the changeset viewer.