jeremyong / Selene

Simple C++11 friendly header-only bindings to Lua
zlib License
814 stars 117 forks source link

Assigning lua variable to float causes Segmentation fault #98

Open zbrojny120 opened 9 years ago

zbrojny120 commented 9 years ago

float example = state["exmpl"]; And other assignments using float, including static_cast, cause Segmentation fault, making the following code required to assign values to float: float example = static_cast<double>(state["exmpl"]);

Zardoz89 commented 9 years ago

Could be this related to #103 ?? I have a similar problem but with strings on VS2015 , were (I think) is calling the copy constructor of std::string