Commits

Anonymous committed a59870a

fix because I got the nibble order wrong

  • Participants
  • Parent commits 477eeeb

Comments (0)

Files changed (1)

File cyclops_mysql.cpp

   const unsigned char *data = fp.GetData();
   hex_s.resize(num_bytes*2, 'X');
   for (int i=0; i<num_bytes; i++) {
-    hex_s[i*2] = hex_chars[data[i] & 0xf];
-    hex_s[i*2+1] = hex_chars[data[i]>>4];
+    hex_s[i*2+1] = hex_chars[data[i] & 0xf];
+    hex_s[i*2] = hex_chars[data[i]>>4];
   }
 }
 static void to_hex(int num_bits, const string& byte_s, string &hex_s) {