Commit 5d3424f5 authored by hybrid's avatar hybrid

Use new strtoul10 method where appropriate.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3675 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e1cd83c8
...@@ -1067,7 +1067,7 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique ...@@ -1067,7 +1067,7 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique
else if (token=="max_lights") else if (token=="max_lights")
{ {
getMaterialToken(file, token); getMaterialToken(file, token);
pass.MaxLights=strtol(token.c_str(),NULL,10); pass.MaxLights=core::strtoul10(token.c_str());
} }
else if (token=="point_size") else if (token=="point_size")
{ {
...@@ -1082,12 +1082,12 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique ...@@ -1082,12 +1082,12 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique
else if (token=="point_size_min") else if (token=="point_size_min")
{ {
getMaterialToken(file, token); getMaterialToken(file, token);
pass.PointSizeMin=strtol(token.c_str(),NULL,10); pass.PointSizeMin=core::strtoul10(token.c_str());
} }
else if (token=="point_size_max") else if (token=="point_size_max")
{ {
getMaterialToken(file, token); getMaterialToken(file, token);
pass.PointSizeMax=strtol(token.c_str(),NULL,10); pass.PointSizeMax=core::strtoul10(token.c_str());
} }
else if (token=="texture_unit") else if (token=="texture_unit")
{ {
...@@ -1149,7 +1149,7 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique ...@@ -1149,7 +1149,7 @@ void COgreMeshFileLoader::readPass(io::IReadFile* file, OgreTechnique& technique
else if (token=="max_anisotropy") else if (token=="max_anisotropy")
{ {
getMaterialToken(file, token); getMaterialToken(file, token);
pass.Material.TextureLayer[textureUnit].AnisotropicFilter=(u8)core::strtol10(token.c_str()); pass.Material.TextureLayer[textureUnit].AnisotropicFilter=(u8)core::strtoul10(token.c_str());
} }
else if (token=="texture_alias") else if (token=="texture_alias")
{ {
......
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