Warning and assert fixes.
This commit is contained in:
parent
72bfb64795
commit
0b6cdeb5f5
3 changed files with 1 additions and 15 deletions
|
@ -33,7 +33,7 @@ namespace cloonel {
|
|||
///----------------------------------------------------------------------
|
||||
float2 CountTilesInScreen (const ushort2& parScreenSize, const ushort2& parTileSize) {
|
||||
assert(ushort2(0) != parTileSize);
|
||||
return vector_cast<float2>((parTileSize - 1 + parScreenSize) / parTileSize);
|
||||
return vector_cast<float2>((parTileSize - 1U + parScreenSize) / parTileSize);
|
||||
}
|
||||
} //unnamed namespace
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue