Commit 3ac05145 authored by hybrid's avatar hybrid

copy'n'paste typo and signedness fixed

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1678 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 3bd70324
......@@ -99,19 +99,19 @@ namespace core
u32 j=1;
if (requirePowerOfTwo)
{
while (i<Width)
while (i<(u32)Width)
i<<=1;
if (!larger && i!=1)
i>>=1;
while (j<Width)
while (j<(u32)Height)
j<<=1;
if (!larger && j!=1)
j>>=1;
}
else
{
i=Width;
j=Height;
i=(u32)Width;
j=(u32)Height;
}
if (requireSquare)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment