Changes to migrate to 32 bit arch (armv7l)
[anna.git] / source / core / functions.cpp
index 567fb71..613a021 100644 (file)
@@ -384,7 +384,7 @@ throw(RuntimeException) {
  */
 int functions::log2(const unsigned int v)
 throw() {
-  static const char LogTable256[] = {
+  static const signed char LogTable256[] = {
     -1, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
     5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,