Skip to content

Commit

Permalink
fix t/cast.m1
Browse files Browse the repository at this point in the history
  • Loading branch information
kjs committed Jun 10, 2012
1 parent 77b100b commit 1401d02
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions t/cast.m1
@@ -1,11 +1,15 @@
int main() {

print("1..2\n");
int i;
num n;
n = 3.2;
n = 1.2;
i = (int)n;
print(n);
print("\n");
print("ok ");
print(i);
print(" - converting 1.2 to 1.\n");
n = 2.3;
i = (int)n;
print("ok ");
print(i);
print("\n");
print(" - converting 2.3 to 2.\n");
}

0 comments on commit 1401d02

Please sign in to comment.