diff options
author | Torbjörn Andersson | 2005-01-02 14:52:11 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-01-02 14:52:11 +0000 |
commit | 5f6108052e24fbf4a309ae5c315278b992d76ede (patch) | |
tree | d25d5d688dfe3f767f9ffb40469153662444278c /saga/isomap.cpp | |
parent | 1bc636aaa676839c6e8fe2d8cc1405f2c3b2393c (diff) | |
download | scummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.tar.gz scummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.tar.bz2 scummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.zip |
Changed "sizeof x" to "sizeof(x)" for consistency with the rest of ScummVM,
and used ARRAYSIZE() instead in two cases.
svn-id: r16408
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r-- | saga/isomap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/isomap.cpp b/saga/isomap.cpp index bec8170ac5..6d9ac7b35f 100644 --- a/saga/isomap.cpp +++ b/saga/isomap.cpp @@ -55,7 +55,7 @@ int IsoMap::loadTileset(const byte *tileres_p, size_t tileres_len) { readS.seek(0); - tile_tbl = (ISOTILE_ENTRY *)malloc(_tile_ct * sizeof *tile_tbl); + tile_tbl = (ISOTILE_ENTRY *)malloc(_tile_ct * sizeof(*tile_tbl)); if (tile_tbl == NULL) { return MEM; } @@ -88,7 +88,7 @@ int IsoMap::loadMetaTileset(const byte *mtileres_p, size_t mtileres_len) { MemoryReadStreamEndian readS(mtileres_p, mtileres_len, IS_BIG_ENDIAN); mtile_ct = mtileres_len / SAGA_METATILE_ENTRY_LEN; - mtile_tbl = (ISO_METATILE_ENTRY *)malloc(mtile_ct * sizeof *mtile_tbl); + mtile_tbl = (ISO_METATILE_ENTRY *)malloc(mtile_ct * sizeof(*mtile_tbl)); if (mtile_tbl == NULL) { return MEM; } |