[pypy-svn] pypy default: Silence two warnings.

arigo commits-noreply at bitbucket.org
Mon Jan 31 13:04:22 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41495:5ce6468d6350
Date: 2011-01-31 13:02 +0100
http://bitbucket.org/pypy/pypy/changeset/5ce6468d6350/

Log:	Silence two warnings.

diff --git a/pypy/translator/c/src/obmalloc.c b/pypy/translator/c/src/obmalloc.c
--- a/pypy/translator/c/src/obmalloc.c
+++ b/pypy/translator/c/src/obmalloc.c
@@ -439,7 +439,7 @@
 	arenabase = bp;
 	nfreepools = ARENA_SIZE / POOL_SIZE;
 	assert(POOL_SIZE * nfreepools == ARENA_SIZE);
-	excess = (uint) ((uint)bp & POOL_SIZE_MASK);
+	excess = (uint) ((long)bp & POOL_SIZE_MASK);
 	if (excess != 0) {
 		--nfreepools;
 		arenabase += POOL_SIZE - excess;

diff --git a/pypy/translator/c/src/signals.h b/pypy/translator/c/src/signals.h
--- a/pypy/translator/c/src/signals.h
+++ b/pypy/translator/c/src/signals.h
@@ -119,7 +119,7 @@
 
     if (wakeup_fd != -1) 
       {
-        write(wakeup_fd, "\0", 1);
+        ssize_t res = write(wakeup_fd, "\0", 1);
         /* the return value is ignored here */
       }
 }


More information about the Pypy-commit mailing list