Skip to content

Commit a9bd4d3

Browse files
Ryerohvani
authored andcommitted
Fix GCC warning from * in boolean context
1 parent f79f842 commit a9bd4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra/llappearanceutility/llprocesstexture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static LLPointer<LLImageRaw> create_texture_from_stream(std::istream& input,
9898
{
9999
throw LLAppException(RV_UNABLE_TO_DECODE, " Unable to validate J2C: " + LLImage::getLastThreadError());
100100
}
101-
if (!(j2c->getWidth() * j2c->getHeight() * j2c->getComponents()))
101+
if (!(j2c->getWidth() * j2c->getHeight() * j2c->getComponents() > 0))
102102
{
103103
throw LLAppException(RV_UNABLE_TO_DECODE, " Invalid dimensions.");
104104
}

0 commit comments

Comments
 (0)