Fix error message
This commit is contained in:
parent
77f33db3ed
commit
a877a58f32
1 changed files with 2 additions and 2 deletions
|
|
@ -638,7 +638,7 @@ proc firstFloat*(t: PType): BiggestFloat =
|
||||||
of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred:
|
of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred:
|
||||||
firstFloat(lastSon(t))
|
firstFloat(lastSon(t))
|
||||||
else:
|
else:
|
||||||
internalError(newPartialConfigRef(), "invalid kind for firstValue(" & $t.kind & ')')
|
internalError(newPartialConfigRef(), "invalid kind for firstFloat(" & $t.kind & ')')
|
||||||
NaN
|
NaN
|
||||||
|
|
||||||
proc lastOrd*(t: PType; fixedUnsigned = false): BiggestInt =
|
proc lastOrd*(t: PType; fixedUnsigned = false): BiggestInt =
|
||||||
|
|
@ -693,7 +693,7 @@ proc lastFloat*(t: PType): BiggestFloat =
|
||||||
of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred:
|
of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred:
|
||||||
lastFloat(lastSon(t))
|
lastFloat(lastSon(t))
|
||||||
else:
|
else:
|
||||||
internalError(newPartialConfigRef(), "invalid kind for lastOrd(" & $t.kind & ')')
|
internalError(newPartialConfigRef(), "invalid kind for lastFloat(" & $t.kind & ')')
|
||||||
NaN
|
NaN
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue