Skip to content

Commit

Permalink
Build: fix const char * cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbr committed Nov 6, 2022
1 parent 93955e9 commit bf06130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void add_area_gbdk(char * p_words[]) {
}


static void add_area_rgbds(char * p_words[], int current_bank, char * str_area_name) {
static void add_area_rgbds(char * p_words[], int current_bank, const char * str_area_name) {

area_item area;

Expand Down Expand Up @@ -122,7 +122,7 @@ int map_file_process_areas(char * filename_in) {
int name_split_count = str_split(strline_in, p_words,"\"");
if (name_split_count > 0) {
// Save section name from array before splitting again (if not blank)
char * str_area_name = (name_split_count == RGBDS_SECT_NAME_SPLIT_WORDS) ? p_words[1] : "";
const char * str_area_name = (name_split_count == RGBDS_SECT_NAME_SPLIT_WORDS) ? p_words[1] : "";
// Then split up the remaining section info from first string in split array
if (str_split(p_words[0], p_words," :$()[]\n\t\"") == RGBDS_SECT_INFO_SPLIT_WORDS)
add_area_rgbds(p_words, cur_bank_rgbds, str_area_name);
Expand Down

0 comments on commit bf06130

Please sign in to comment.