Skip to content

Commit

Permalink
Use INT32_MIN instead of INT_MIN for Linux compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Aug 3, 2023
1 parent 1439387 commit 29541b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugins/LfpDisplayNode/LfpDisplayNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ bool LfpDisplayNode::getIntField(DynamicObject::Ptr payload, String name, int& v
if(!payload->hasProperty(name) || !payload->getProperty(name).isInt())
return false;
int tempVal = payload->getProperty(name);
if((upperBound != INT_MIN && tempVal > upperBound) || (lowerBound != INT_MAX && tempVal < lowerBound))

if ((upperBound != INT32_MIN && tempVal > upperBound) || (lowerBound != INT32_MAX && tempVal < lowerBound))
return false;
value = tempVal;
return true;
Expand Down

0 comments on commit 29541b8

Please sign in to comment.