#include "gl/intprops.h"
#include "gl/progname.h"
#include "gl/xalloc.h"
+#include "gl/xbinary-io.h"
struct buffer
{
if (sym->offset == UINT_MAX)
sym->offset = output->size;
else if (sym->offset != output->size)
- fatal ("%s: can't redefine label for offset %u with offset %u",
+ fatal ("%s: can't redefine label for offset %u with offset %zu",
tok_string, sym->offset, output->size);
get_token ();
return;
if (input != stdin)
fclose (input);
+ xset_binary_mode (fileno (stdout), O_BINARY);
fwrite (output.data, output.size, 1, stdout);
+ free (output.data);
return 0;
}