aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-20 11:55:08 -0500
committerrichiesams2013-08-20 11:55:08 -0500
commit610b563790ded5c43f757675a9acdc49ce555a1d (patch)
tree3fd420b1d58ad16090092b641184b93b9d5baae7
parent6f080b3631c8dc111bc6775877b58a9e5d783565 (diff)
downloadscummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.tar.gz
scummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.tar.bz2
scummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.zip
ZVISION: Convert abs() to ABS() to ensure portability
-rw-r--r--engines/zvision/rlf_animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp
index c072aaf053..26ce2e217c 100644
--- a/engines/zvision/rlf_animation.cpp
+++ b/engines/zvision/rlf_animation.cpp
@@ -141,7 +141,7 @@ void RlfAnimation::decodeMaskedRunLengthEncoding(int8 *source, int8 *dest, uint3
// If numberOfSamples is negative, the next abs(numberOfSamples) samples should
// be copied directly from source to dest
if (numberOfSamples < 0) {
- numberOfSamples = abs(numberOfSamples);
+ numberOfSamples = ABS(numberOfSamples);
while (numberOfSamples > 0) {
if (sourceOffset + 1 >= sourceSize) {
@@ -184,7 +184,7 @@ void RlfAnimation::decodeSimpleRunLengthEncoding(int8 *source, int8 *dest, uint3
// If numberOfSamples is negative, the next abs(numberOfSamples) samples should
// be copied directly from source to dest
if (numberOfSamples < 0) {
- numberOfSamples = abs(numberOfSamples);
+ numberOfSamples = ABS(numberOfSamples);
while (numberOfSamples > 0) {
if (sourceOffset + 1 >= sourceSize) {