summaryrefslogtreecommitdiff
path: root/nasmlib.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-13 10:37:23 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-13 10:37:23 -0800
commitc170867864f02721940b7081f8af6e762d84b626 (patch)
tree097b7b555bed8a7fdc9b935d4548c6f2e842db74 /nasmlib.h
parent4095197f6c64b837684b35badf7f271545fa76f1 (diff)
downloadnasm-c170867864f02721940b7081f8af6e762d84b626.tar.gz
nasm-c170867864f02721940b7081f8af6e762d84b626.tar.bz2
nasm-c170867864f02721940b7081f8af6e762d84b626.zip
Clean up the fwrite*() function definitions somewhat
Slight cleanup of the fwrite*() functions. This actually helps gcc generate better code on i386, for no apparent reason.
Diffstat (limited to 'nasmlib.h')
-rw-r--r--nasmlib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/nasmlib.h b/nasmlib.h
index 15f6984..200cc0e 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -260,10 +260,10 @@ void standard_extension(char *inname, char *outname, char *extension,
* and routines to do the same thing to a file
*/
#define fwriteint8_t(d,f) putc(d,f)
-void fwriteint16_t(int data, FILE * fp);
-void fwriteint32_t(int32_t data, FILE * fp);
-void fwriteint64_t(int64_t data, FILE * fp);
-void fwriteaddr(int64_t data, int size, FILE * fp);
+void fwriteint16_t(uint16_t data, FILE * fp);
+void fwriteint32_t(uint32_t data, FILE * fp);
+void fwriteint64_t(uint64_t data, FILE * fp);
+void fwriteaddr(uint64_t data, int size, FILE * fp);
/*
* Routines to manage a dynamic random access array of int32_ts which