Skip to content

Commit 962bfc7

Browse files
committed
load_abc.cpp (ReadABC): fix -Waddress warning from gcc14
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) | ~~^~
1 parent 773fbe5 commit 962bfc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/load_abc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3955,7 +3955,7 @@ BOOL CSoundFile::ReadABC(const uint8_t *lpStream, DWORD dwMemLength)
39553955
char *pm = p;
39563956
if (mmstack[mmsp]->pos < (LONG)dwMemLength) {
39573957
pm = abc_continuated(h, mmstack[mmsp], p);
3958-
if (pm+2)
3958+
if(*(pm+2))
39593959
abc_new_macro(h, pm+2);
39603960
}
39613961
if( pm != p ) {

0 commit comments

Comments
 (0)