this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

CoreServices: MacMemory - unimportant sizeof fix

+4 -3
+4 -3
src/frameworks/CoreServices/MacMemory.cpp
··· 21 21 #include <cstring> 22 22 #include <stdint.h> 23 23 #include <cstdlib> 24 + #include <cstdio> 24 25 #include <malloc/malloc.h> 25 26 26 27 void BlockMove(const void* src, void* dst, size_t count) ··· 106 107 107 108 Handle NewHandle(long size) 108 109 { 109 - Handle h = (Handle) malloc(sizeof(Handle)); 110 + Handle h = (Handle) malloc(sizeof(*h)); 110 111 *h = NewPtr(size); 111 112 return h; 112 113 } 113 114 114 115 Handle NewHandleClear(long size) 115 116 { 116 - Handle h = (Handle) malloc(sizeof(Handle)); 117 + Handle h = (Handle) malloc(sizeof(*h)); 117 118 *h = NewPtrClear(size); 118 119 return h; 119 120 } 120 121 121 122 Handle NewEmptyHandle(void) 122 123 { 123 - Handle h = (Handle) malloc(sizeof(Handle)); 124 + Handle h = (Handle) malloc(sizeof(*h)); 124 125 *h = nullptr; 125 126 return h; 126 127 }