From b185b32ba1966163e8abc760fbd9a0eb1f1b68d6 Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Mon, 23 Oct 2017 19:07:10 +0700 Subject: [PATCH] Use hex2long() instead of getparam() in do_dump() and do_dumpn() --- source/compiler/sc6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/compiler/sc6.c b/source/compiler/sc6.c index 207417b..b2b792c 100644 --- a/source/compiler/sc6.c +++ b/source/compiler/sc6.c @@ -385,7 +385,7 @@ static cell OPHANDLER_CALL do_dump(FILE *fbin,char *params,cell opcode) int num=0; while (*params!='\0') { - p=getparam(params,¶ms); + p=hex2long(params,¶ms); if (fbin!=NULL) write_encoded(fbin,&p,1); num++; @@ -399,8 +399,8 @@ static cell OPHANDLER_CALL do_dumpn(FILE *fbin,char *params,cell opcode) { ucell value,num,i; - value=getparam(params,¶ms); - num=getparam(params,NULL); + value=hex2long(params,¶ms); + num=hex2long(params,NULL); if (fbin!=NULL) { for (i=0; i