summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-05-07 11:09:34 -0700
committerMerov Linden <merov@lindenlab.com>2011-05-07 11:09:34 -0700
commit1e0d3fc7bc1102faaa98ea6753c4366d9cef7379 (patch)
tree69aedd0aafed64c9c1b539fe72458e78b6b94ba6 /indra
parent460aa3ade72fe999eebccb390ae371dfdfeaf125 (diff)
EXP-664 : following richard codereview: use llclamp where appropriate
Diffstat (limited to 'indra')
-rw-r--r--indra/llkdu/llimagej2ckdu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llkdu/llimagej2ckdu.cpp b/indra/llkdu/llimagej2ckdu.cpp
index f83accf356..39ae09650e 100644
--- a/indra/llkdu/llimagej2ckdu.cpp
+++ b/indra/llkdu/llimagej2ckdu.cpp
@@ -351,8 +351,7 @@ BOOL LLImageJ2CKDU::initEncode(LLImageJ2C &base, LLImageRaw &raw_image, int bloc
mLevels = levels;
if (mLevels != 0)
{
- mLevels = llmin(mLevels,MAX_DECOMPOSITION_LEVELS);
- mLevels = llmax(MIN_DECOMPOSITION_LEVELS,mLevels);
+ mLevels = llclamp(mLevels,MIN_DECOMPOSITION_LEVELS,MIN_DECOMPOSITION_LEVELS);
}
return TRUE;
}