aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/06-floats.zc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/learn/06-floats.zc')
-rw-r--r--examples/learn/06-floats.zc7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/learn/06-floats.zc b/examples/learn/06-floats.zc
index 06d23fa..bc0f4b3 100644
--- a/examples/learn/06-floats.zc
+++ b/examples/learn/06-floats.zc
@@ -1,6 +1,7 @@
-fn put_f(x) { asm { x @ #1220 } return 0; }
+namespace;
+include rt;
+void put_f(float x) { asm { x @ #1220 } }
fn main() {
let a = 1.5;
- put_f(a + 2.5); put_c(10);
- return 0;
+ put_f(a + 2.5); rt.put_c(10);
}