adapt to new compiler types

R=r
OCL=18024
CL=18024
This commit is contained in:
Russ Cox 2008-10-29 13:09:39 -07:00
parent c21d9a1ec9
commit bc67ea4f8f
7 changed files with 32 additions and 31 deletions

View file

@ -22,7 +22,7 @@ func
sinus(arg float64, quad int) float64
{
var e, f, ysq, x, y, temp1, temp2 float64;
var k long;
var k int32;
x = arg;
if(x < 0) {
@ -36,7 +36,7 @@ sinus(arg float64, quad int) float64
temp1,f = sys.modf(0.25*e);
quad = int(e - 4*f);
} else {
k = long(x);
k = int32(x);
y = x - float64(k);
quad = (quad + int(k)) & 3;
}