Skip to content

Commit

Permalink
Remove unreached 'return'.
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Tempelaar-Lietz <xlietz@gmail.com>
  • Loading branch information
xlietz committed Oct 7, 2019
1 parent 6337096 commit e2860ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions OpenEXR/IlmImfTest/compareDwa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ toNonlinear(half linear)

if ( fabs( (float)linear ) <= 1.0f) {
return (half)(sign * pow(fabs((float)linear), 1.f/2.2f));
} else {
return (half)(sign * ( log(fabs((float)linear)) / log(logBase) + 1.0f) );
}
}

return (half)0.0f;
return (half)(sign * ( log(fabs((float)linear)) / log(logBase) + 1.0f) );
}


Expand Down

0 comments on commit e2860ce

Please sign in to comment.