Actually shut up the warning in rdfload.c
authorH. Peter Anvin <hpa@zytor.com>
Mon, 29 Oct 2007 06:10:34 +0000 (23:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 29 Oct 2007 06:10:34 +0000 (23:10 -0700)
Shut the warning in rdfload.c up properly...

rdoff/rdfload.c

index d1d69d5..03164b5 100644 (file)
@@ -104,9 +104,9 @@ rdfmodule *rdfload(const char *filename)
 
     rdfheaderrewind(&f->f);
 
-    f->textrel = (size_t)(uint32_t)f->t;
-    f->datarel = (size_t)(uint32_t)f->d;
-    f->bssrel  = (size_t)(int32_t)f->b;
+    f->textrel = (int32_t)(size_t)f->t;
+    f->datarel = (int32_t)(size_t)f->d;
+    f->bssrel  = (int32_t)(size_t)f->b;
 
     return f;
 }