Skip to content

Commit

Permalink
load_abc.cpp (ReadABC): fix -Waddress warning from gcc14
Browse files Browse the repository at this point in the history
load_abc.cpp: In member function 'BOOL CSoundFile::ReadABC(const uint8_t*, DWORD)':
load_abc.cpp:3958:55: warning: comparing the result of pointer addition '(pm + 2)' and NULL [-Waddress]
 3958 |                                                 if (pm+2)
      |                                                     ~~^~
  • Loading branch information
sezero committed Nov 23, 2024
1 parent 773fbe5 commit 962bfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load_abc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,7 @@ BOOL CSoundFile::ReadABC(const uint8_t *lpStream, DWORD dwMemLength)
char *pm = p;
if (mmstack[mmsp]->pos < (LONG)dwMemLength) {
pm = abc_continuated(h, mmstack[mmsp], p);
if (pm+2)
if(*(pm+2))
abc_new_macro(h, pm+2);
}
if( pm != p ) {
Expand Down

0 comments on commit 962bfc7

Please sign in to comment.