Skip to content
Snippets Groups Projects
Commit 57af0084 authored by Will Sackfield's avatar Will Sackfield
Browse files

Cast to long long explicitly

* On OS X it seems that we need to cast to long long
in order to satisfy to_string. I imagine there isn't
an int compatible to_string when compiling with clang
on El Capitan.
parent b07593b3
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ FGEngine::FGEngine(FGFDMExec* exec, Element* engine_element, int engine_number) ...@@ -91,7 +91,7 @@ FGEngine::FGEngine(FGFDMExec* exec, Element* engine_element, int engine_number)
Name = engine_element->GetAttributeValue("name"); Name = engine_element->GetAttributeValue("name");
Load(engine_element, PropertyManager, to_string(EngineNumber)); // Call ModelFunctions loader Load(engine_element, PropertyManager, to_string((long long)EngineNumber)); // Call ModelFunctions loader
// Find and set engine location // Find and set engine location
...@@ -148,7 +148,7 @@ FGEngine::FGEngine(FGFDMExec* exec, Element* engine_element, int engine_number) ...@@ -148,7 +148,7 @@ FGEngine::FGEngine(FGFDMExec* exec, Element* engine_element, int engine_number)
property_name = base_property_name + "/fuel-flow-rate-pps"; property_name = base_property_name + "/fuel-flow-rate-pps";
PropertyManager->Tie( property_name.c_str(), this, &FGEngine::GetFuelFlowRate); PropertyManager->Tie( property_name.c_str(), this, &FGEngine::GetFuelFlowRate);
PostLoad(engine_element, PropertyManager, to_string(EngineNumber)); PostLoad(engine_element, PropertyManager, to_string((long long)EngineNumber));
//cout << "Engine[" << EngineNumber << "] using fuel density: " << FuelDensity << endl; //cout << "Engine[" << EngineNumber << "] using fuel density: " << FuelDensity << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment