- [FIX] posible leak al carregar el bmp de la font

- [FIX] arreglats un milló de warnings
This commit is contained in:
Raimon @ quifisraimon
2026-09-18 10:51:54 +02:00
parent 791bd7efbd
commit a25c070b07
5 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ namespace m6502dis
while (true) {
uint16_t address;
char tmp[15];
const int result = fscanf(f, "%x %s", &address, tmp);
const int result = fscanf(f, "%hx %s", &address, tmp);
if (result != 2) break;
strcpy(symbols[address], tmp);
used_symbols.push_back(address);
@@ -81,7 +81,7 @@ namespace m6502dis
if (strstr(buffer, "4x"))
{
opcode_size+=2;
const uint8_t memvalue = mem::read(pos);
//const uint8_t memvalue = mem::read(pos);
const uint16_t word = mem::read(pos+1) + (mem::read(pos+2)<<8);
if (symbols[word][0]!=0) {
char *p = strstr(buffer, "$");