ChaiScript / ChaiScript_Extras

Repository for ChaiScript bindings sources.
BSD 3-Clause "New" or "Revised" License
32 stars 8 forks source link

Finished implementing all cmath functions #2

Closed spfrommer closed 9 years ago

lefticus commented 9 years ago

Which compiler are you testing on?

lefticus commented 9 years ago

@spfrommer I ask because I have no problem with the ll functions on clang-3.5

lefticus commented 9 years ago

I've tested gcc-4.6, clang-3.5, MSVC 2013 (32bit + 64bit) with no problem...

spfrommer commented 9 years ago

g++ 4.8.2

It compiles fine (except for a few warnings) but fails at runtime with the following error message for functions that return long long ints: /home/samuel/repositories/bitbucket/ChaiScript_Extras/tests/math.cpp:71: FAILED: CHECK( chai.eval("llround(0.5)") == llround(0.5) ) due to unexpected exception with message: Cannot perform boxed_cast

spfrommer commented 9 years ago

It also doesn't seem to like the atanh test: /home/samuel/repositories/bitbucket/ChaiScript_Extras/tests/math.cpp:34: FAILED: CHECK( chai.eval("atanh(0.5)") == atanh(0.5) ) with expansion: 0.5493061443 == 0.5493061443

lefticus commented 9 years ago

32bit / 64bit? Which OS?

spfrommer commented 9 years ago

64 bit.