- Timestamp:
- Dec 14, 2005, 3:17:36 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/converter.cc
r6106 r6108 89 89 const int step = 256; // = 2 ^ 8 90 90 int result = 0; 91 for (int i = 0; i < INTSIZE - 2; i++)91 for (int i = 0; i < INTSIZE - 1; i++) 92 92 { 93 93 result += a[i] * mult; … … 95 95 } 96 96 97 if (a[INTSIZE - 1] > sgnadd) 97 printf("tara: %i", result); 98 99 if (a[INTSIZE - 1] >= sgnadd) 98 100 { 99 101 result += (a[INTSIZE - 1] - sgnadd) * mult; -
branches/network/src/subprojects/network/network_unit_test.cc
r6106 r6108 287 287 int converter(int argc, char** argv) 288 288 { 289 int x = -12;289 int x = 200564786; 290 290 printf("To convert: %i\n", x); 291 291 byte* res = Converter::intToByteArray(x);
Note: See TracChangeset
for help on using the changeset viewer.