]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
fix -Wsign-compare
authorAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 15:24:08 +0000 (15:24 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 15:26:02 +0000 (15:26 +0000)
lib/libbmk_core/memalloc.c
lib/libbmk_rumpuser/rumpuser_mem.c

index 3b75ddaebff1c17755d89d2615ddfbc947d78922..236914cfa5e2129e10b9733e5ed5f5bf7bd64c27 100644 (file)
@@ -123,7 +123,7 @@ union       overhead {
 #define MINALIGN 16
 static union overhead *nextf[NBUCKETS];
 
-static long pagesz;                    /* page size */
+static unsigned long pagesz;           /* page size */
 static int pagebucket;                 /* page size bucket */
 
 #ifdef MSTATS
index 4ac2ed4261b45a0c7873b13835d586dc524da529..087b25dc552223a1f31f6c1e3104fc9ccc7409b2 100644 (file)
@@ -53,7 +53,7 @@ rumpuser_malloc(size_t len, int alignment, void **retval)
         * will not trigger for the common case.
         */
        if (len == bmk_pagesize) {
-               bmk_assert(alignment <= bmk_pagesize);
+               bmk_assert((unsigned long)alignment <= bmk_pagesize);
                *retval = bmk_platform_allocpg2(0);
        } else {
                *retval = bmk_memalloc(len, alignment);