From 244c14db0ba5c71a04be9486704994c774c5648b Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 13 Aug 2012 17:07:49 +0200 Subject: top level closures should work; transf is not a pass anymore; next steps for first class iterator support --- lib/core/typeinfo.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/core') 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 = -- cgit 1.4.1-2-gfad0