regularized spelling of license to match name of LICENSE file
[platform/upstream/nasm.git] / rdoff / rdfload.c
index cd24c2d..ac46de7 100644 (file)
@@ -2,7 +2,7 @@
  *
  * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
  * Julian Hall. All rights reserved. The software is
- * redistributable under the licence given in the file "Licence"
+ * redistributable under the license given in the file "LICENSE"
  * distributed in the NASM archive.
  *
  * Permission to use this file in your own projects is granted, as int32_t
@@ -17,6 +17,8 @@
  *   - support for segment relocations (hard to do in ANSI C)
  */
 
+#include "compiler.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -102,9 +104,9 @@ rdfmodule *rdfload(const char *filename)
 
     rdfheaderrewind(&f->f);
 
-    f->textrel = (int32_t)f->t;
-    f->datarel = (int32_t)f->d;
-    f->bssrel = (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;
 }