diff options
author | richiesams | 2013-08-20 11:55:08 -0500 |
---|---|---|
committer | richiesams | 2013-08-20 11:55:08 -0500 |
commit | 610b563790ded5c43f757675a9acdc49ce555a1d (patch) | |
tree | 3fd420b1d58ad16090092b641184b93b9d5baae7 /engines/zvision | |
parent | 6f080b3631c8dc111bc6775877b58a9e5d783565 (diff) | |
download | scummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.tar.gz scummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.tar.bz2 scummvm-rg350-610b563790ded5c43f757675a9acdc49ce555a1d.zip |
ZVISION: Convert abs() to ABS() to ensure portability
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/rlf_animation.cpp | 4 |
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) { |