compiler does not know how to handle Rcomplex numerator / double denominator and need explicit cast for INTSXP case
| 67 | // Rcomplex numerator / double denominator |
| 68 | // and need explicit cast for INTSXP case |
| 69 | inline double half(double lhs) { |
| 70 | return lhs / 2.0; |
| 71 | } |
| 72 | |
| 73 | inline double half(int lhs) { |
| 74 | return static_cast<double>(lhs) / 2.0; |
no outgoing calls
no test coverage detected