Menu

#29 some problem with floats and 0f

open
nobody
None
5
2011-08-08
2011-08-08
No

1st code (Works):
nuwork(1) nfor(i in 1)
{
mutable c = 0f;
c += data_in[0];
}

2nd code (does NOT work):
nuwork(1) nfor(i in 1)
{
mutable c = 0f;
c = data_in[0];
}
error during compiling:

test.n:14:3:18:4: error: AssertionException has occurred when expanding macro 'nukernelCodeMacro'
test.n:14:3:18:4: error: AssertionException has occurred when expanding macro 'nukernelCodeMacro'
test.n:14:3:18:4: error: the meaning of `nukernelCodeMacro' does not allow this operation

Discussion

MongoDB Logo MongoDB