fix calloc of functions
what was i thinking?
This commit is contained in:
parent
eb7ead0b78
commit
add6801a23
1 changed files with 2 additions and 2 deletions
4
adis.c
4
adis.c
|
@ -1474,8 +1474,8 @@ int main(int argc, char * argv[])
|
||||||
branches = calloc(1, XBOX_HUGE);
|
branches = calloc(1, XBOX_HUGE);
|
||||||
mapped_functions = calloc(1, XBOX_HUGE);
|
mapped_functions = calloc(1, XBOX_HUGE);
|
||||||
#define FUNCTIONS (XBOX_HUGE / sizeof(function))
|
#define FUNCTIONS (XBOX_HUGE / sizeof(function))
|
||||||
functions = calloc(1, FUNCTIONS);
|
functions = calloc(FUNCTIONS, sizeof(function));
|
||||||
function *functions_data = calloc(1, FUNCTIONS);
|
function *functions_data = calloc(FUNCTIONS, sizeof(function));
|
||||||
for (i = 0; i < FUNCTIONS; i++) {
|
for (i = 0; i < FUNCTIONS; i++) {
|
||||||
functions[i] = functions_data;
|
functions[i] = functions_data;
|
||||||
functions_data += sizeof(function);
|
functions_data += sizeof(function);
|
||||||
|
|
Loading…
Reference in a new issue