Changeset: 8c8850f1def7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8c8850f1def7
Modified Files:
        monetdb5/modules/atoms/blob.c
Branch: Dec2016
Log Message:

Don't expect size_t - size_t to fit in an int.


diffs (12 lines):

diff --git a/monetdb5/modules/atoms/blob.c b/monetdb5/modules/atoms/blob.c
--- a/monetdb5/modules/atoms/blob.c
+++ b/monetdb5/modules/atoms/blob.c
@@ -99,7 +99,7 @@ blob_nequal(blob *l, blob *r)
        size_t len = l->nitems;
 
        if (len != r->nitems)
-               return len - r->nitems;
+               return len < r->nitems ? -1 : len > r->nitems ? 1 : 0;
 
        if (len == ~(size_t) 0)
                return (0);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to