diff options
author | cooldome <ariabushenko@bk.ru> | 2018-06-12 09:31:45 +0100 |
---|---|---|
committer | cooldome <ariabushenko@bk.ru> | 2018-06-12 09:31:45 +0100 |
commit | a877a58f32790d9ef574bcd466b327989cdd6acf (patch) | |
tree | 9cdcf396d7e76957ae9b601a71afbd47f32e93dd /compiler | |
parent | 77f33db3ed5b3f3c116dcb8159e68a8d51daede8 (diff) | |
download | Nim-a877a58f32790d9ef574bcd466b327989cdd6acf.tar.gz |
Fix error message
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/types.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 83e20c38e..f31096b57 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -638,7 +638,7 @@ proc firstFloat*(t: PType): BiggestFloat = of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred: firstFloat(lastSon(t)) else: - internalError(newPartialConfigRef(), "invalid kind for firstValue(" & $t.kind & ')') + internalError(newPartialConfigRef(), "invalid kind for firstFloat(" & $t.kind & ')') NaN proc lastOrd*(t: PType; fixedUnsigned = false): BiggestInt = @@ -693,7 +693,7 @@ proc lastFloat*(t: PType): BiggestFloat = of tyGenericInst, tyDistinct, tyTypeDesc, tyAlias, tyStatic, tyInferred: lastFloat(lastSon(t)) else: - internalError(newPartialConfigRef(), "invalid kind for lastOrd(" & $t.kind & ')') + internalError(newPartialConfigRef(), "invalid kind for lastFloat(" & $t.kind & ')') NaN |