Don't pointlessly cast sizeof's result to size_t
authorIan Lynagh <igloo@earth.li>
Wed, 9 May 2012 13:49:48 +0000 (14:49 +0100)
committerIan Lynagh <igloo@earth.li>
Wed, 9 May 2012 13:49:48 +0000 (14:49 +0100)
rts/Linker.c

index 15e61ba..b23ff93 100644 (file)
@@ -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);
           }