#5158 - twillinx - Tue Apr 22, 2003 1:57 pm
Code: |
float temp = 0; temp = ((-4/2)-((4/2)^2-7)^0.5); ypos = (int)temp; |
And here comes the error message:
invalid operands of types 'int' and 'double' to binary 'operator^'
It doesn't work using static_cast either.
To make things clear: "s16 ypos = 130;", I'm using the gba.h-register, and the s16 is defined as an int.
I'm using GCC.
I would appreciate to know how to get around this problem.