diff --git a/lang/cem/cpp.ansi/ch3bin.c b/lang/cem/cpp.ansi/ch3bin.c index 149a3de6c..3378e45f6 100644 --- a/lang/cem/cpp.ansi/ch3bin.c +++ b/lang/cem/cpp.ansi/ch3bin.c @@ -55,7 +55,7 @@ ch3bin(pval, pis_uns, oper, val, is_uns) #endif } else { - *pval = *pval % val; + *pval = *pval / val; } break; case '%': @@ -89,7 +89,7 @@ ch3bin(pval, pis_uns, oper, val, is_uns) #endif } else { - *pval = *pval / val; + *pval = *pval % val; } break; case '*':