projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfb90f7
)
Add casts to fix warnings
author
Ian Lynagh
<igloo@earth.li>
Tue, 21 Sep 2010 12:17:14 +0000
(12:17 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 21 Sep 2010 12:17:14 +0000
(12:17 +0000)
rts/Linker.c
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
715731b
..
df91b65
100644
(file)
--- a/
rts/Linker.c
+++ b/
rts/Linker.c
@@
-1727,7
+1727,7
@@
loadArchive( char *path )
file = stgReallocBytes(file, fileSize, "loadArchive(file)");
}
n = fread ( file, 1, fileNameSize, f );
- if (n != fileNameSize)
+ if (n != (int)fileNameSize)
barf("loadArchive: Failed reading filename from `%s'", path);
}
else {
@@
-1735,7
+1735,7
@@
loadArchive( char *path )
}
isObject = 0;
- for (n = 0; n < fileNameSize - 1; n++) {
+ for (n = 0; n < (int)fileNameSize - 1; n++) {
if ((file[n] == '.') && (file[n] == 'o')) {
isObject = 1;
break;