From: fredb Date: Thu, 19 Mar 2009 13:17:46 +0000 (+0000) Subject: Support old compilers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ff286ea01eb10ea7b3d9e5d9666ed0558d4b3ab;p=flightgear.git Support old compilers --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 471df6a6b..fadca5249 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -466,7 +466,7 @@ static naRef f_geodtocart(naContext c, naRef me, int argc, naRef* args) static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args) { #define HASHSET(s,l,n) naHash_set(matdata, naStr_fromdata(naNewString(c),s,l),n) - if(argc < 2 or argc > 3) + if(argc < 2 || argc > 3) naRuntimeError(c, "geodinfo() expects 2 or 3 arguments: lat, lon [, maxalt]"); double lat = naNumValue(args[0]).num; double lon = naNumValue(args[1]).num;