altos/test: Adapt flight test to int16_t flight number type
[fw/altos] / src / test / ao_int64_test.c
index 8557a1c79648b2538622d4c79562fb7a4b416bfa..d329f67b5ff407498b0992fa5e5bb8d85639ba77 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -33,7 +34,7 @@ int   errors;
                c = ao_cast64(&ao_r);                                   \
                if (c != r) {                                           \
                        printf ("trial %4d: %lld " #func mod " %lld = %lld (should be %lld)\n", \
-                               trial, (int64_t) (a), (int64_t) b, c, r); \
+                               trial, (long long) (a), (long long) b, (long long) c, (long long) r); \
                        ++errors;                                       \
                }                                                       \
        } while (0)