fixed a Windows compiler warning (Chris Poblete) fix for mod when dividend
* valid.c: fixed a Windows compiler warning (Chris Poblete)
* xpath.c: fix for mod when dividend is 0 (Chris Poblete)
Daniel
diff --git a/valid.c b/valid.c
index 7e4e4df..29bfcfa 100644
--- a/valid.c
+++ b/valid.c
@@ -3479,7 +3479,8 @@
* save the second branch 'or' branch
*/
DEBUG_VALID_MSG("saving 'or' branch");
- vstateVPush(ctxt, CONT->c2, NODE, DEPTH + 1, OCCURS, ROLLBACK_OR);
+ vstateVPush(ctxt, CONT->c2, NODE, (unsigned char)(DEPTH + 1),
+ OCCURS, ROLLBACK_OR);
DEPTH++;
CONT = CONT->c1;