Fix 2 casts al estilo C
authorslack <slack@0666ae3d-8926-0410-aeff-ae84559ff337>
Sun, 19 Aug 2007 03:38:15 +0000 (03:38 +0000)
committerslack <slack@0666ae3d-8926-0410-aeff-ae84559ff337>
Sun, 19 Aug 2007 03:38:15 +0000 (03:38 +0000)
git-svn-id: http://slack.codemaniacs.com/wenboi@10 0666ae3d-8926-0410-aeff-ae84559ff337

GBRom.cc

index e7c3efde582c2de0ec4c6337933a444c19631132..b792a2ab863eb2b020f4cc275f3f4363af9b0151 100644 (file)
--- a/GBRom.cc
+++ b/GBRom.cc
@@ -49,8 +49,8 @@ GBRom *read_gbrom(std::string filename)
        is.seekg(0,ios::beg);
 
        void *buffer = ::operator new(length);
-       is.read((char*)buffer, length);
-       GBRom *rom = (GBRom*) buffer;
+       is.read(reinterpret_cast<char*>(buffer), length);
+       GBRom *rom = reinterpret_cast<GBRom*>(buffer);
 
        char buf[17];
        std::memcpy(buf, rom->header.old_title, 16);