Index: lib/fixnum/int64.dart |
diff --git a/lib/fixnum/int64.dart b/lib/fixnum/int64.dart |
index 8cefb32f502d89cd7af0afc53ceea3961e38c0a7..733955e092abfc869bf11f690ed15b36547bb0b1 100644 |
--- a/lib/fixnum/int64.dart |
+++ b/lib/fixnum/int64.dart |
@@ -243,8 +243,8 @@ class int64 implements intx { |
throw new NullPointerException(); |
} else if (other is intx) { |
other = other.toInt64(); |
- } else if (other is int) { |
- other = new int64.fromInt(other); |
+ } else if (other is num) { |
+ other = new int64.fromInt(other.toInt()); |
} |
if (other is !int64) { |
throw new Exception("Can't promote $other to int64"); |