diff options
author | Araq <rumpf_a@web.de> | 2012-08-13 17:07:49 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-13 17:07:49 +0200 |
commit | 244c14db0ba5c71a04be9486704994c774c5648b (patch) | |
tree | 7026ea267830246119e49f303ed2dd8320c71e0a /lib/core | |
parent | f686647f58c67d90f051dedf441f9b3eb913899b (diff) | |
download | Nim-244c14db0ba5c71a04be9486704994c774c5648b.tar.gz |
top level closures should work; transf is not a pass anymore; next steps for first class iterator support
Diffstat (limited to 'lib/core')
-rwxr-xr-x | lib/core/typeinfo.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index 9030b7b53..3032ccb19 100755 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -455,7 +455,7 @@ proc getFloat*(x: TAny): float = proc getFloat32*(x: TAny): float32 = ## retrieve the float32 value out of `x`. `x` needs to represent an float32. - assert skipRange(x.rawtype).kind == tyFloat64 + assert skipRange(x.rawtype).kind == tyFloat32 result = cast[ptr float32](x.value)[] proc getFloat64*(x: TAny): float64 = |