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/rscfile.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/rscfile.cpp')
-rw-r--r-- | saga/rscfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/rscfile.cpp b/saga/rscfile.cpp index a234a9a210..2b6c430569 100644 --- a/saga/rscfile.cpp +++ b/saga/rscfile.cpp @@ -39,7 +39,7 @@ RSCFILE_CONTEXT *RSC_CreateContext() { empty_context.rc_file = new File(); RSCFILE_CONTEXT *new_context; - new_context = (RSCFILE_CONTEXT *)malloc(sizeof *new_context); + new_context = (RSCFILE_CONTEXT *)malloc(sizeof(*new_context)); if (new_context == NULL) { return NULL; } @@ -141,7 +141,7 @@ int RSC_LoadRSC(RSCFILE_CONTEXT *rsc) { return FAILURE; } - rsc_restbl = (RSCFILE_RESOURCE *)malloc(res_tbl_ct * sizeof *rsc_restbl); + rsc_restbl = (RSCFILE_RESOURCE *)malloc(res_tbl_ct * sizeof(*rsc_restbl)); if (rsc_restbl == NULL) { free(tbl_buf); return FAILURE; |