Let fgGetLong actually return long instead of int
This commit is contained in:
parent
6dd4782254
commit
2f630e502d
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue