fix up output types for dump_namedvars
This commit is contained in:
parent
628ee9554e
commit
3768ad2578
1 changed files with 4 additions and 1 deletions
|
@ -80,9 +80,12 @@ int dump_namedvars(char *name2) {
|
|||
printf("Value: %s\n", (char *)output);
|
||||
break;
|
||||
case NV_INT:
|
||||
output = data + item->format[i].offset;
|
||||
printf("Value: %d\n", *((int *)output));
|
||||
break;
|
||||
case NV_LONG:
|
||||
output = data + item->format[i].offset;
|
||||
printf("Value: %d\n", (int)output);
|
||||
printf("Value: %d\n", *((long *)output));
|
||||
break;
|
||||
case NV_VOID:
|
||||
printf("Value: Complex!\n");
|
||||
|
|
Reference in a new issue