Use signed integers for CPU ids
This commit is contained in:
parent
75c32f3a99
commit
de70a057d4
4
emu.c
4
emu.c
@ -602,8 +602,8 @@ proc_load_cpus(struct ovni_emu *emu, struct ovni_loom *loom,
|
|||||||
if(cpu == NULL)
|
if(cpu == NULL)
|
||||||
die("proc_load_cpus: json_array_get_object() failed\n");
|
die("proc_load_cpus: json_array_get_object() failed\n");
|
||||||
|
|
||||||
size_t index = (int) json_object_get_number(cpu, "index");
|
int index = (int) json_object_get_number(cpu, "index");
|
||||||
size_t phyid = (int) json_object_get_number(cpu, "phyid");
|
int phyid = (int) json_object_get_number(cpu, "phyid");
|
||||||
|
|
||||||
add_new_cpu(emu, loom, index, phyid);
|
add_new_cpu(emu, loom, index, phyid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user