Use hex2long() instead of getparam() in do_dump() and do_dumpn()

This commit is contained in:
Daniel_Cortez 2017-10-23 19:07:10 +07:00
parent 4b3279c3ff
commit b185b32ba1

View File

@ -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,&params);
p=hex2long(params,&params);
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,&params);
num=getparam(params,NULL);
value=hex2long(params,&params);
num=hex2long(params,NULL);
if (fbin!=NULL) {
for (i=0; i<num; i++)
write_encoded(fbin,&value,1);