[commit: ghc] master: Don't pointlessly cast sizeof's result to size_t (203afa1)
Ian Lynagh
igloo at earth.li
Thu May 17 04:39:06 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/203afa1ca506ac2bc58298d55f44bbcba27b7090
>---------------------------------------------------------------
commit 203afa1ca506ac2bc58298d55f44bbcba27b7090
Author: Ian Lynagh <igloo at earth.li>
Date: Wed May 9 14:49:48 2012 +0100
Don't pointlessly cast sizeof's result to size_t
>---------------------------------------------------------------
rts/Linker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rts/Linker.c b/rts/Linker.c
index 15e61ba..b23ff93 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -3645,7 +3645,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
}
if (kind != SECTIONKIND_OTHER && end >= start) {
- if ((((size_t)(start)) % (size_t)sizeof(void *)) != 0) {
+ if ((((size_t)(start)) % sizeof(void *)) != 0) {
barf("Misaligned section: %p", start);
}
More information about the Cvs-ghc
mailing list