]> git.earman.xyz Git - sensor-watch.git/commitdiff
silence warning in new timezone renamer
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 13 Mar 2025 03:10:50 +0000 (23:10 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 13 Mar 2025 03:10:50 +0000 (23:10 -0400)
watch-library/shared/watch/watch_utility.c

index 308159d6c254a76e035ab97c9c621f70719e499b..4bf53bc21201f403b296a516b37c5f806153c65e 100644 (file)
@@ -334,7 +334,7 @@ uint8_t watch_utility_days_in_month(uint8_t month, uint16_t year) {
 char _scratch_timezone[7] = {0};
 
 char *watch_utility_time_zone_name_at_index(int32_t tzindex) {
-    char *zone_in_rom = (zone_names + 8 * tzindex);
+    char *zone_in_rom = ((char *)zone_names + 8 * tzindex);
 
     if (watch_get_lcd_type() != WATCH_LCD_TYPE_CUSTOM) {
         // classic LCD can get a pointer to ROM