Lewis Van Winkle
Lewis Van Winkle
What compiler are you using and what message does it output?
Please copy/paste your command-line compiler invocation and what it says. To fix your issue, you can merely change the line to `return NAN;`.
Interesting. It seems to only happen with `TE_POW_FROM_RIGHT` defined. It's definitely a parser error. With `TE_POW_FROM_RIGHT` defined, it parses the expression as `negation(power(1, 0))` instead of `power(negation(1),0)`.
When `TE_POW_FROM_RIGHT` is defined, there is special logic to ensure that `-a^b` = `-(a^b)`. The problem is that it will optimize `(-1)^0` to `-1^0` to `-(1^0)`, which is very wrong....
I've added some extra test cases to `smoke.c`. A fix is still coming...
Does it work if you just remove those two lines? i.e. compile without the ceil and floor functions?
Is it possible that you're compiling this as C++ instead of C? I think that may be the issue here.
I'm not sure about that. It probably depends on the project settings. You could add some C++ code to the file to check if it is indeed compiling as C++...
Thanks for the issue. I don't think it's possible to add a timeout option (without bringing in external dependencies, which I won't do), so I'll probably address this in two...
Thanks for sharing your fixes. If any others are in your situation, I'm sure they will find it very useful. You did a great job of documenting exactly where the...