Changeset: 5495c240e913 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5495c240e913
Modified Files:
        common/utils/muuid.c
Branch: Jun2020
Log Message:

Add unsigned cast.


diffs (18 lines):

diff --git a/common/utils/muuid.c b/common/utils/muuid.c
--- a/common/utils/muuid.c
+++ b/common/utils/muuid.c
@@ -86,10 +86,10 @@ generateUUID(void)
                 * ("%08x-%04x-%04x-%04x-%012x") */
                snprintf(out, sizeof(out),
                         "%04x%04x-%04x-4%03x-8%03x-%04x%04x%04x",
-                        rand() % 65536, rand() % 65536,
-                        rand() % 65536, rand() % 4096,
-                        rand() % 4096, rand() % 65536,
-                        rand() % 65536, rand() % 65536);
+                        (unsigned) rand() % 65536U, (unsigned) rand() % 65536U,
+                        (unsigned) rand() % 65536U, (unsigned) rand() % 4096,
+                        (unsigned) rand() % 4096, (unsigned) rand() % 65536U,
+                        (unsigned) rand() % 65536U, (unsigned) rand() % 
65536U);
        }
 #endif
        return strdup(out);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to