Okay... my bad I guess... but this is something new to me after the few years I did not code in C++:
If I employ pow(x,2), it is then that I have a segmentation fault. However, from the function definition of pow, it takes a type double for the exponent, so if I do pow(x,static_cast<double>(2)) the segmentation fault is gone! Case closed I guess? Sorry for the false alarm. This might still be a problem though, since the function should automatically typecast an "int" type to a type "double". At the very least, it should issue a warning, not a segmentation fault. -- pow() causes segmentation fault https://bugs.launchpad.net/bugs/534094 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
