lyb BUGFIX enum byte size check

Fixes sysrepo/sysrepo#1363
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 6dde92f..cfc0ad7 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -123,11 +123,11 @@
     size_t bytes;
     uint64_t tmp_enum = 0;
 
-    if (count < (2 << 8)) {
+    if (count < (1 << 8)) {
         bytes = 1;
-    } else if (count < (2 << 16)) {
+    } else if (count < (1 << 16)) {
         bytes = 2;
-    } else if (count < (2 << 24)) {
+    } else if (count < (1 << 24)) {
         bytes = 3;
     } else {
         bytes = 4;
diff --git a/src/printer_lyb.c b/src/printer_lyb.c
index cb44690..2bc2b10 100644
--- a/src/printer_lyb.c
+++ b/src/printer_lyb.c
@@ -471,11 +471,11 @@
 {
     size_t bytes;
 
-    if (count < (2 << 8)) {
+    if (count < (1 << 8)) {
         bytes = 1;
-    } else if (count < (2 << 16)) {
+    } else if (count < (1 << 16)) {
         bytes = 2;
-    } else if (count < (2 << 24)) {
+    } else if (count < (1 << 24)) {
         bytes = 3;
     } else {
         bytes = 4;