Skip to content

Commit 9ad317f

Browse files
committed
faster integer -> number
1 parent 08638ee commit 9ad317f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/vm/type.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ function vm.isSubType(uri, child, parent, mark)
125125
return true
126126
end
127127

128+
if parentName == 'number' and childName == 'integer' then
129+
return true
130+
end
131+
128132
if parentName == 'integer' and childName == 'number' then
129133
if config.get(uri, 'Lua.type.castNumberToInteger') then
130134
return true

0 commit comments

Comments
 (0)