1
0
Fork 0

Let fgGetLong actually return long instead of int

This commit is contained in:
Thomas Geymayer 2012-09-25 23:08:52 +02:00
parent 6dd4782254
commit 2f630e502d
2 changed files with 3 additions and 3 deletions

View file

@ -668,7 +668,7 @@ fgGetInt (const char * name, int defaultValue)
return globals->get_props()->getIntValue(name, defaultValue); return globals->get_props()->getIntValue(name, defaultValue);
} }
int long
fgGetLong (const char * name, long defaultValue) fgGetLong (const char * name, long defaultValue)
{ {
return globals->get_props()->getLongValue(name, defaultValue); return globals->get_props()->getLongValue(name, defaultValue);

View file

@ -299,7 +299,7 @@ inline int fgGetInt (const std::string & name, int defaultValue = 0)
* does not exist. * does not exist.
* @return The property's value as a long, or the default value provided. * @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. * Get a long value for a property.
@ -315,7 +315,7 @@ extern int fgGetLong (const char * name, long defaultValue = 0L);
* does not exist. * does not exist.
* @return The property's value as a long, or the default value provided. * @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 ); return fgGetLong( name.c_str(), defaultValue );
} }