]> git.mxchange.org Git - flightgear.git/commitdiff
Let fgGetLong actually return long instead of int
authorThomas Geymayer <tomgey@gmail.com>
Tue, 25 Sep 2012 21:08:52 +0000 (23:08 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 25 Sep 2012 21:24:29 +0000 (23:24 +0200)
src/Main/fg_props.cxx
src/Main/fg_props.hxx

index 8eefb8c4981f2aa6d272a112a6dc7bdaecb96cce..8f3036776db5d590a20dc3b5e0bfcf0267cb90ac 100644 (file)
@@ -668,7 +668,7 @@ fgGetInt (const char * name, int defaultValue)
   return globals->get_props()->getIntValue(name, defaultValue);
 }
 
-int
+long
 fgGetLong (const char * name, long defaultValue)
 {
   return globals->get_props()->getLongValue(name, defaultValue);
index eb9af1dfe94c9388776e6fab88fd00c9820af23d..023d4dbbff4c1f42db65f3f935b5e01c832c7b0b 100644 (file)
@@ -299,7 +299,7 @@ inline int fgGetInt (const std::string & name, int defaultValue = 0)
  *        does not exist.
  * @return The property's value as a long, or the default value provided.
  */
-extern int fgGetLong (const char * name, long defaultValue = 0L);
+extern long fgGetLong (const char * name, long defaultValue = 0L);
 
 /**
  * Get a long value for a property.
@@ -315,7 +315,7 @@ extern int fgGetLong (const char * name, long defaultValue = 0L);
  *        does not exist.
  * @return The property's value as a long, or the default value provided.
  */
-inline int fgGetLong (const std::string & name, long defaultValue = 0L)
+inline long fgGetLong (const std::string & name, long defaultValue = 0L)
 {
     return fgGetLong( name.c_str(), defaultValue );
 }