From 1e3ba48a887a5b02b4f7c87d131b35142c2f4e4a Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 28 Jun 2018 22:35:27 +0100 Subject: [PATCH] Windows compilation fix --- src/Scripting/NasalPositioned.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scripting/NasalPositioned.cxx b/src/Scripting/NasalPositioned.cxx index d110109eb..2569e00c7 100644 --- a/src/Scripting/NasalPositioned.cxx +++ b/src/Scripting/NasalPositioned.cxx @@ -1990,7 +1990,7 @@ static naRef f_formatLatLon(naContext c, naRef me, int argc, naRef* args) simgear::strutils::LatLonFormat format = static_cast(fgGetInt("/sim/lon-lat-format")); if (argOffset < argc && naIsNum(args[argOffset])) { - format = static_cast(args[argOffset].num); + format = static_cast((int) args[argOffset].num); if (format > simgear::strutils::LatLonFormat::DECIMAL_DEGREES_SYMBOL) { naRuntimeError(c, "invalid lat-lon format requested"); }