Fixed: % and / were interchanged
This commit is contained in:
parent
d801356f1e
commit
86cb2d66d7
|
@ -55,7 +55,7 @@ ch3bin(pval, pis_uns, oper, val, is_uns)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*pval = *pval % val;
|
*pval = *pval / val;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '%':
|
case '%':
|
||||||
|
@ -89,7 +89,7 @@ ch3bin(pval, pis_uns, oper, val, is_uns)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*pval = *pval / val;
|
*pval = *pval % val;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
|
|
Loading…
Reference in a new issue