diff options
author | Gregory Montoir | 2007-11-01 18:15:25 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-11-01 18:15:25 +0000 |
commit | e6e144d494a7f85a62dcc79ad96ddebc5aa34789 (patch) | |
tree | e03745dc793f4b0307f8efe09b20da4467f09808 | |
parent | 93ebcffcacb5adabfa4813e1c8aa1383febab54d (diff) | |
download | scummvm-rg350-e6e144d494a7f85a62dcc79ad96ddebc5aa34789.tar.gz scummvm-rg350-e6e144d494a7f85a62dcc79ad96ddebc5aa34789.tar.bz2 scummvm-rg350-e6e144d494a7f85a62dcc79ad96ddebc5aa34789.zip |
use mod operator directly
svn-id: r29363
-rw-r--r-- | gui/eval.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/eval.cpp b/gui/eval.cpp index d4c4f5499c..7798cffaee 100644 --- a/gui/eval.cpp +++ b/gui/eval.cpp @@ -167,8 +167,7 @@ void Eval::arith(char op, int *r, int *h) { *r = (*r) / (*h); break; case '%': - t = (*r) / (*h); - *r = *r - (t * (*h)); + *r = (*r) % (*h); break; } } |