On Wed, Dec 22, 2010 at 00:04:35 +0000, brian m. carlson wrote:

> diff -ur libuninum.old/unicode.h libuninum-2.7/unicode.h
> --- libuninum.old/unicode.h   2010-12-21 21:35:42.000000000 +0000
> +++ libuninum-2.7/unicode.h   2010-12-21 23:57:33.000000000 +0000
> @@ -1,8 +1,10 @@
> -typedef unsigned long        UTF32;  /* at least 32 bits */
> -typedef unsigned short       UTF16;  /* at least 16 bits */
> -typedef unsigned short       UCS2;   /* at least 16 bits */
> -typedef unsigned char        UTF8;   /* 8 bits */
> -typedef unsigned char        Boolean; /* 0 or 1 */
> +#include <stdint.h>
> +
> +typedef uint32_t     UTF32;  /* at least 32 bits */
> +typedef uint16_t     UTF16;  /* at least 16 bits */
> +typedef uint16_t     UCS2;   /* at least 16 bits */
> +typedef uint8_t      UTF8;   /* 8 bits */
> +typedef uint8_t      Boolean; /* 0 or 1 */
>  
should probably change the comments, since apparently "at least 32 bits"
is not what was meant here, or this bug would never have happened.

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature

Reply via email to