diff options
author | Torbjörn Andersson | 2005-05-12 13:12:15 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-12 13:12:15 +0000 |
commit | d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2 (patch) | |
tree | 38056f06dfb05964f15f120be8d9aaaf20f339b6 /sword2/memory.cpp | |
parent | d6a20a231b30242645860f453895f11d67a624e5 (diff) | |
download | scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.gz scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.bz2 scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.zip |
Whitespace: "(type *)something" instead of "(type *) something", because
that's how we write it in most other places.
svn-id: r18069
Diffstat (limited to 'sword2/memory.cpp')
-rw-r--r-- | sword2/memory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/memory.cpp b/sword2/memory.cpp index ea06fd8abf..2030ecc0aa 100644 --- a/sword2/memory.cpp +++ b/sword2/memory.cpp @@ -66,9 +66,9 @@ MemoryManager::MemoryManager(Sword2Engine *vm) : _vm(vm) { // encoding or decoding pointers any faster, and these are by far the // most common operations. - _idStack = (int16 *) malloc(MAX_MEMORY_BLOCKS * sizeof(int16)); - _memBlocks = (MemBlock *) malloc(MAX_MEMORY_BLOCKS * sizeof(MemBlock)); - _memBlockIndex = (MemBlock **) malloc(MAX_MEMORY_BLOCKS * sizeof(MemBlock *)); + _idStack = (int16 *)malloc(MAX_MEMORY_BLOCKS * sizeof(int16)); + _memBlocks = (MemBlock *)malloc(MAX_MEMORY_BLOCKS * sizeof(MemBlock)); + _memBlockIndex = (MemBlock **)malloc(MAX_MEMORY_BLOCKS * sizeof(MemBlock *)); _totAlloc = 0; _numBlocks = 0; @@ -192,7 +192,7 @@ byte *MemoryManager::memAlloc(uint32 size, int16 uid) { int16 id = _idStack[--_idStackPtr]; // Allocate the new memory block - byte *ptr = (byte *) malloc(size); + byte *ptr = (byte *)malloc(size); assert(ptr); |