schema compile BUGFIX checking decimal64 values

number of fraction digits were checked even if there were no fraction
digits in the value.
diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c
index 623dd26..37932a7 100644
--- a/src/tree_schema_compile.c
+++ b/src/tree_schema_compile.c
@@ -1139,7 +1139,7 @@
     if (basetype == LY_TYPE_DEC64) {
 decimal:
         assert(frdigits);
-        if (*len - 1 - fraction > frdigits) {
+        if (fraction && (*len - 1 - fraction > frdigits)) {
             LOGVAL(ctx->ctx, LY_VLOG_STR, ctx->path, LYVE_SYNTAX_YANG,
                    "Range boundary \"%.*s\" of decimal64 type exceeds defined number (%u) of fraction digits.",
                    *len, value, frdigits);