From 6c3b7c1762f0184935a7e717b670d3f0a20e7038 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Fri, 5 Jul 2013 13:13:53 +0000 Subject: [PATCH] - fix x64 build; --- desmume/src/NDSSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index c9ecdecfc..d15db4c54 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -208,7 +208,7 @@ NDS_header * NDS_getROMHeader(void) //copy all data blindly, but not entirely blindly.. in case the header is smaller than normal, we dont want to read junk data //(we memset to 0xFF since thats likely to be what gets read from the invalid area) memset(header,0xFF,sizeof(NDS_header)); - int todo = std::min(gameInfo.romsize,sizeof(NDS_header)); + int todo = std::min(gameInfo.romsize,sizeof(NDS_header)); memcpy(header,MMU.CART_ROM,todo); //endian swap necessary fields. It would be better if we made accessors for these. I wonder if you could make a macro for a field accessor that would take the bitsize and do the swap on the fly