Skip to content

Commit

Permalink
Expression is always true
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 30, 2017
1 parent c81bbcf commit e45334c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/utils/xrDXT/dds/tPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ inline size_t calcMaxMipmap(size_t w, size_t h)
{
size_t n = 0;
size_t count = 0;
assert(w >= 0);
assert(h >= 0);
count = w > h ? w : h;
while (count)
{
Expand All @@ -65,9 +63,6 @@ inline size_t calcMaxMipmap(size_t w, size_t h, size_t d)
{
size_t n = 0;
size_t count = 0;
assert(w >= 0);
assert(h >= 0);
assert(d >= 0);
count = w > h ? w : h;
if (d > count)
count = d;
Expand Down

0 comments on commit e45334c

Please sign in to comment.