Skip to content

Commit

Permalink
fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
DEntis-T committed Jun 25, 2024
1 parent 1f245bf commit 7c5e821
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/modules/interpreter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2546,13 +2546,30 @@ stock dpp_process(line[])

/*if(!strcmp(var_group_2[0], "unsigned"))
{
dpp_createintvar(vargroup[0],strval(vargroup[1]) < 0 ? strval(vargroup[1])*(-1) : strval(vargroup[1]), .unsigned = 1);
dpp_createintvar(var_group_3[0],strval(var_group_3[1]) < 0 ? strval(var_group_3[1])*(-1) : strval(var_group_3[1]), .unsigned = 1);
return 1;
}*/

dpp_createintvar(var_group_3[0],strval(var_group_3[1]), .staticvar = 1, .baseform = dpp_processfunc);
return 1;
}
//static[int.unsigned]name=1
//typedef<int.unsigned>uint
//static[uint]name=1
if(!strcmp(var_group_2[0], "int.unsigned"))
{
if(!dpp_isnumeric(var_group_3[1]))
{
dpp_error("Argument error; value must be an integer.",);
return 0;
}

dpp_createintvar(var_group_3[0],
strval(var_group_3[1]) < 0 ? strval(var_group_3[1])*(-1) : strval(var_group_3[1]),
.staticvar = 1, .baseform = dpp_processfunc,.unsigned = 1);

return 1;
}
if(!strcmp(var_group_2[0], "bool"))
{
if(strcmp(var_group_3[1],"true") && strcmp(var_group_3[1],"false"))
Expand Down

0 comments on commit 7c5e821

Please sign in to comment.