Skip to content

Commit 84f5795

Browse files
committed
adding support to nonNegativeInteger datatype
1 parent c5c1321 commit 84f5795

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/literal.lisp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@
185185
(defmethod compute-literal-value-error ((literal literal)
186186
(datatype node)
187187
string
188-
&key (value string)
189-
(warn-only-p nil))
188+
&key (value string) (warn-only-p t))
190189
(unless warn-only-p
191190
(cerror (format nil "Use value ~S instead" value)
192191
'datatype-parse-error :thing string))
@@ -271,6 +270,11 @@
271270
string)
272271
(compute-literal-value-integer literal datatype string))
273272

273+
(defmethod compute-literal-value ((literal literal)
274+
(datatype (eql !xsd:nonNegativeInteger))
275+
string)
276+
(compute-literal-value-integer literal datatype string))
277+
274278
(defmethod compute-literal-value ((literal literal)
275279
(datatype (eql !xsd:int))
276280
string)

0 commit comments

Comments
 (0)