Windows compilation fix
This commit is contained in:
parent
1a7f513fb1
commit
1e3ba48a88
1 changed files with 1 additions and 1 deletions
|
@ -1990,7 +1990,7 @@ static naRef f_formatLatLon(naContext c, naRef me, int argc, naRef* args)
|
||||||
simgear::strutils::LatLonFormat format =
|
simgear::strutils::LatLonFormat format =
|
||||||
static_cast<simgear::strutils::LatLonFormat>(fgGetInt("/sim/lon-lat-format"));
|
static_cast<simgear::strutils::LatLonFormat>(fgGetInt("/sim/lon-lat-format"));
|
||||||
if (argOffset < argc && naIsNum(args[argOffset])) {
|
if (argOffset < argc && naIsNum(args[argOffset])) {
|
||||||
format = static_cast<simgear::strutils::LatLonFormat>(args[argOffset].num);
|
format = static_cast<simgear::strutils::LatLonFormat>((int) args[argOffset].num);
|
||||||
if (format > simgear::strutils::LatLonFormat::DECIMAL_DEGREES_SYMBOL) {
|
if (format > simgear::strutils::LatLonFormat::DECIMAL_DEGREES_SYMBOL) {
|
||||||
naRuntimeError(c, "invalid lat-lon format requested");
|
naRuntimeError(c, "invalid lat-lon format requested");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue