]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/progmem.h
Add missing parentheses to some important macros (#4775)
[qmk_firmware.git] / tmk_core / common / progmem.h
index dcc9efb3cef832b7d32b6b98a000c1be52ca7bcf..de931383972ddf1cf8280e42247b8052c8464590 100644 (file)
@@ -5,9 +5,9 @@
 #   include <avr/pgmspace.h>
 #else
 #   define PROGMEM
-#   define pgm_read_byte(p)     *((unsigned char*)p)
-#   define pgm_read_word(p)     *((uint16_t*)p)
-#   define pgm_read_dword(p)    *((uint32_t*)p)
+#   define pgm_read_byte(p)     *((unsigned char*)(p))
+#   define pgm_read_word(p)     *((uint16_t*)(p))
+#   define pgm_read_dword(p)    *((uint32_t*)(p))
 #endif
 
 #endif