Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 390f433

Browse files
committed
Fix the skipped Float in typeSubs
1 parent 0d1e103 commit 390f433

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java2python/config/default.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
(Type('TYPE') > Type('BOOLEAN'), transform.typeSub),
154154
(Type('TYPE') > Type('BYTE'), transform.typeSub),
155155
(Type('TYPE') > Type('CHAR'), transform.typeSub),
156-
(Type('TYPE') > Type('DOUBLE'), transform.typeSub),
156+
(Type('TYPE') > Type('FLOAT'), transform.typeSub),
157157
(Type('TYPE') > Type('INT'), transform.typeSub),
158158
(Type('TYPE') > Type('SHORT'), transform.typeSub),
159159
(Type('TYPE') > Type('LONG'), transform.typeSub),
@@ -223,6 +223,9 @@
223223
'Long' : 'long',
224224
'long' : 'long',
225225

226+
'Float' : 'float',
227+
'float' : 'float',
228+
226229
'Double' : 'float',
227230
'double' : 'float',
228231

0 commit comments

Comments
 (0)