From 61d01f2e52364370f45373e4bd4a7bdba256c9a9 Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Wed, 10 Jun 2020 19:33:49 +0200
Subject: [PATCH] reverting this change to see if this is behind the CI
 failing.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 compiler2/ustring.hh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/compiler2/ustring.hh b/compiler2/ustring.hh
index 0df60ceaa..02acb2598 100644
--- a/compiler2/ustring.hh
+++ b/compiler2/ustring.hh
@@ -21,7 +21,6 @@
 #define _Common_ustring_HH
 
 #include <string.h>
-#include <limits.h>
 
 class string;
 
@@ -54,9 +53,9 @@ private:
 
 public:
 
-  /** The largest possible string length that can theoretically fit into the memory. */
+  /** The largest possible value of type size_t. That is, size_t(-1). */
   static const size_t max_string_len =
-    (UINT_MAX - sizeof(ustring_struct)) / sizeof(universal_char) + 1;
+    (-1 - sizeof(ustring_struct)) / sizeof(universal_char) + 1;
 
   /** Constructs an empty string. */
   ustring() : val_ptr(0) { init_struct(0); }
-- 
GitLab