File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ proc getSysType*(g: ModuleGraph; info: TLineInfo; kind: TTypeKind): PType =
68
68
of tyUInt64: result = sysTypeFromName(" uint64" )
69
69
of tyFloat: result = sysTypeFromName(" float" )
70
70
of tyFloat32: result = sysTypeFromName(" float32" )
71
- of tyFloat64: return sysTypeFromName(" float64" )
71
+ of tyFloat64: result = sysTypeFromName(" float64" )
72
72
of tyFloat128: result = sysTypeFromName(" float128" )
73
73
of tyBool: result = sysTypeFromName(" bool" )
74
74
of tyChar: result = sysTypeFromName(" char" )
@@ -79,7 +79,9 @@ proc getSysType*(g: ModuleGraph; info: TLineInfo; kind: TTypeKind): PType =
79
79
else : internalError(g.config, " request for typekind: " & $ kind)
80
80
g.sysTypes[kind] = result
81
81
if result .kind != kind:
82
- internalError(g.config, " wanted: " & $ kind & " got: " & $ result .kind)
82
+ if kind == tyFloat64 and result .kind == tyFloat: discard # because of aliasing
83
+ else :
84
+ internalError(g.config, " wanted: " & $ kind & " got: " & $ result .kind)
83
85
if result == nil : internalError(g.config, " type not found: " & $ kind)
84
86
85
87
proc resetSysTypes* (g: ModuleGraph) =
You can’t perform that action at this time.
0 commit comments