+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Avoid gcc warning on Cygwin.
+ * lib/html-ostream.oo.c (html_ostream::write_mem): Change type of local
+ variable 'uc'.
+
2009-05-23 Bruno Haible <bruno@clisp.org>
Avoid gcc warning "cast from pointer to integer of different size".
/* Output stream that produces HTML output.
- Copyright (C) 2006-2008 Free Software Foundation, Inc.
+ Copyright (C) 2006-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
while (insize > 0)
{
unsigned char c0;
- unsigned int uc;
+ ucs4_t uc;
int nbytes;
c0 = ((const unsigned char *) inptr)[0];
/* Output non-ASCII characters in #&nnn;
notation. */
char bytes[32];
- sprintf (bytes, "&#%d;", uc);
+ sprintf (bytes, "&#%d;", (int) uc);
ostream_write_str (stream->destination, bytes);
}
break;