We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f707c commit 59ee5ccCopy full SHA for 59ee5cc
1 file changed
lib/unparser/emitter/literal/primitive.rb
@@ -33,12 +33,21 @@ class Complex < self
33
34
RATIONAL_FORMAT = 'i'.freeze
35
36
- MAP = IceNine.deep_freeze(
37
- Float => :float,
38
- Rational => :rational,
39
- Fixnum => :int,
40
- Bignum => :int
41
- )
+ MAP =
+ if 0.class.equal?(Integer)
+ IceNine.deep_freeze(
+ Float => :float,
+ Rational => :rational,
+ Integer => :int
42
+ )
43
+ else
44
45
46
47
+ Fixnum => :int,
48
+ Bignum => :int
49
50
+ end
51
52
private
53
0 commit comments