summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-12-17 23:04:34 +0100
committerAraq <rumpf_a@web.de>2016-12-17 23:04:34 +0100
commit24239c23619e9d64562699b5d890fa2575e9c9cb (patch)
tree7b68d65e1bc5c12a465dd29814e6328cb25e30b4 /compiler/semexprs.nim
parent3a4ec7f101f539fb536086b59c84e1b2c095ef82 (diff)
parentd4c33df91996e30ded5f7f2014e7cd49176b5b05 (diff)
downloadNim-24239c23619e9d64562699b5d890fa2575e9c9cb.tar.gz
Merge branch 'devel' into sighashes
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 5e6611064..9076ce99b 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -127,7 +127,7 @@ proc checkConvertible(c: PContext, castDest, src: PType): TConvStatus =
       discard
 
 proc isCastable(dst, src: PType): bool =
-  ## Checks whether the source type can be casted to the destination type.
+  ## Checks whether the source type can be cast to the destination type.
   ## Casting is very unrestrictive; casts are allowed as long as
   ## castDest.size >= src.size, and typeAllowed(dst, skParam)
   #const
@@ -223,7 +223,7 @@ proc semCast(c: PContext, n: PNode): PNode =
   addSon(result, copyTree(n.sons[0]))
   addSon(result, semExprWithType(c, n.sons[1]))
   if not isCastable(result.typ, result.sons[1].typ):
-    localError(result.info, errExprCannotBeCastedToX,
+    localError(result.info, errExprCannotBeCastToX,
                typeToString(result.typ))
 
 proc semLowHigh(c: PContext, n: PNode, m: TMagic): PNode =