summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 009c26e..5b778c7 100644
--- a/misc.h
+++ b/misc.h
@@ -708,6 +708,7 @@ template<> inline word16 rotlFixed<word16>(word16 x, unsigned int y)
template<> inline word16 rotrFixed<word16>(word16 x, unsigned int y)
{
assert(y < 8*sizeof(x));
+ assert(y <= 255);
return y ? _rotr16(x, y) : x;
}