libidav/davqlparser.c

changeset 85
0ab1cf261a44
parent 83
7d20ce5d235b
child 86
ecba8bdf9741
--- a/libidav/davqlparser.c	Fri Apr 03 14:53:28 2015 +0200
+++ b/libidav/davqlparser.c	Sat Apr 04 17:44:33 2015 +0200
@@ -105,10 +105,10 @@
     }
     
     // WITH attributes
-    if (stmt->depth == SIZE_MAX) {
-        printf("Depth: unbound\n");
+    if (stmt->depth < 0) {
+        printf("Depth: infinity\n");
     } else {
-        printf("Depth: %zu\n", stmt->depth);
+        printf("Depth: %d\n", stmt->depth);
     }
 }
 
@@ -426,7 +426,7 @@
     
     // default values
     stmt->type = -1;
-    stmt->depth = SIZE_MAX;
+    stmt->depth = 1;
     
     // save trimmed source text
     stmt->srctext = sstrtrim(srctext);

mercurial