cortexelf-v1: Make bit flipping array constant
authorKeith Packard <keithp@keithp.com>
Mon, 3 Apr 2017 18:36:52 +0000 (11:36 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 3 Apr 2017 18:36:52 +0000 (11:36 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cortexelf-v1/ao_flip_bits.5c

index 26900893b330d74c24d1dc9540dda616034b1674..055d5299451aaac349fcf0e8d10343ffa60fffb9 100644 (file)
@@ -9,7 +9,7 @@ int flip_bits(int a)
        return result;
 }
 
-printf ("static uint8_t ao_flip_bits[256] = {\n");
+printf ("static const uint8_t ao_flip_bits[256] = {\n");
 
 for (int i = 0; i < 256; i++) {
        printf (" 0x%02x,", flip_bits(i));