Skip to content

Commit df0d2a2

Browse files
committed
fix fabsf warning. need abs for int
1 parent b345463 commit df0d2a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp/findpath.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void MapSearchNode::PrintNodeInfo()
122122

123123
float MapSearchNode::GoalDistanceEstimate( MapSearchNode &nodeGoal )
124124
{
125-
return fabsf(x - nodeGoal.x) + fabsf(y - nodeGoal.y);
125+
return abs(x - nodeGoal.x) + abs(y - nodeGoal.y);
126126
}
127127

128128
bool MapSearchNode::IsGoal( MapSearchNode &nodeGoal )

0 commit comments

Comments
 (0)