Index: lib/fixnum/int32.dart |
diff --git a/lib/fixnum/int32.dart b/lib/fixnum/int32.dart |
index 8bc61f1bc5851d8ae09f42150bcdc715ccd9334e..b74468ba751a76b9eed9d40017b19e32add14b78 100644 |
--- a/lib/fixnum/int32.dart |
+++ b/lib/fixnum/int32.dart |
@@ -143,8 +143,8 @@ class int32 implements intx { |
throw new NullPointerException(); |
} else if (other is intx) { |
return other.toInt32()._i; |
- } else if (other is int) { |
- return other; |
+ } else if (other is num) { |
+ return other.toInt(); |
} else { |
throw new Exception("Can't retrieve 32-bit int from $other"); |
} |