dockimbel/Red — Issue #211: Float32! arguments to typed functions appear incorrect 
Author: PeterWAWood
Created: 2012-02-29 03:46:20+00:00
State: open

Passing two float32! arguments to a typed function appears to generate incorrect results:

Code

```rebol

Red/System []

print ["declarations" lf]

myfunc: function [
[typed]
count [integer!]
list [typed-value!]
return: [float32!]
/local
a [float32!]
b [float32!]
][
a: as float32! list/value
list: list + 1
b: as float32! list/value
a + b
]

print ["started" lf]

y: myfunc as-float32 1.0 as-float32 2.0

if y = as-float32 3.0 [print ["3.0" lf]]
if y < as-float32 3.0 [print ["< 3.0" lf]]
if y > as-float32 3.0 [print ["> 3.0" lf]]

print ["finished" lf]

```

Output

```
declarations
started
< 3.0
finished

```