Explorar el Código

fix: crc.c里面的数组应该改成static的

Wendal Chen hace 5 años
padre
commit
bc79f715cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      luat/modules/crc.c

+ 1 - 1
luat/modules/crc.c

@@ -168,7 +168,7 @@ uint16_t calcCRC16(const uint8_t *data, const char *cmd, int length, uint16_t po
     return 0;
 }
 
-uint32_t CRC32_table[256] =
+static const uint32_t CRC32_table[256] =
 {
   0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,
   0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,