Commit 1ea0efb9 authored by Arne Graf's avatar Arne Graf

NAN to J_NAN

parent f8000b8d
Pipeline #3988 failed with stages
in 8 seconds
......@@ -199,7 +199,7 @@ enum MagicNumbers{
};
constexpr double magicnum(int i) {
return (i == UNKNOWN_DISTANCE) ? -3.0 : (i == UNKNOWN_COST) ? -2.0 : (i == WALL_ON_COSTARRAY) ? -7.0 : (i == TARGET_REGION) ? 0.0 : NAN;
return (i == UNKNOWN_DISTANCE) ? -3.0 : (i == UNKNOWN_COST) ? -2.0 : (i == WALL_ON_COSTARRAY) ? -7.0 : (i == TARGET_REGION) ? 0.0 : J_NAN;
// switch (i) {
// case UNKNOWN_DISTANCE:
// return -3.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment