diff options
-rw-r--r-- | lib/core/macros.nim | 2 | ||||
-rw-r--r-- | lib/pure/math.nim | 2 | ||||
-rw-r--r-- | lib/pure/xmldom.nim | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index b0ef54397..3adf4670d 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -80,7 +80,7 @@ type NimNodeKinds* = set[NimNodeKind] NimTypeKind* = enum # some types are no longer used, see ast.nim ntyNone, ntyBool, ntyChar, ntyEmpty, - ntyArrayConstr, ntyNil, ntyExpr, ntyStmt, + ntyAlias, ntyNil, ntyExpr, ntyStmt, ntyTypeDesc, ntyGenericInvocation, ntyGenericBody, ntyGenericInst, ntyGenericParam, ntyDistinct, ntyEnum, ntyOrdinal, ntyArray, ntyObject, ntyTuple, ntySet, diff --git a/lib/pure/math.nim b/lib/pure/math.nim index 4ef169b4f..a8432b6f0 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -213,7 +213,7 @@ when not defined(JS): ## .. code-block:: nim ## echo ceil(-2.1) ## -2.0 - when defined(windows) and defined(vcc): + when defined(windows) and (defined(vcc) or defined(bcc)): # MSVC 2010 don't have trunc/truncf # this implementation was inspired by Go-lang Math.Trunc proc truncImpl(f: float64): float64 = diff --git a/lib/pure/xmldom.nim b/lib/pure/xmldom.nim index 559f45348..3c891c81b 100644 --- a/lib/pure/xmldom.nim +++ b/lib/pure/xmldom.nim @@ -890,7 +890,7 @@ proc tagName*(el: PElement): string = return el.fTagName # Procedures -proc getAttribute*(el: PElement, name: string): string = +proc getAttribute*(el: PNode, name: string): string = ## Retrieves an attribute value by ``name`` if isNil(el.attributes): return nil @@ -900,7 +900,7 @@ proc getAttribute*(el: PElement, name: string): string = else: return nil -proc getAttributeNS*(el: PElement, namespaceURI: string, localName: string): string = +proc getAttributeNS*(el: PNode, namespaceURI: string, localName: string): string = ## Retrieves an attribute value by ``localName`` and ``namespaceURI`` if isNil(el.attributes): return nil |