[libxml2] Small code cleanup on previous patch



commit 1ea95900468ec45c251dd44093830569af28e657
Author: Daniel Veillard <veillard redhat com>
Date:   Wed Jul 28 14:49:55 2010 +0200

    Small code cleanup on previous patch
    
    suggested by Andrew Nosenko

 xmlschemastypes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 5347283..1a5454c 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -2475,7 +2475,7 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
                         digits_after++;
                     }
                 }
-                if (digits_before + digits_after == 0)
+                if ((digits_before == 0) && (digits_after == 0))
                     goto return1;
                 if ((*cur == 'e') || (*cur == 'E')) {
                     cur++;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]