[Snowball-discuss] Snowball Patch

Martin Porter martin at porterloo.wanadoo.co.uk
Tue Sep 15 10:44:23 BST 2009


Alan,

I have applied your suggested patch:


--- /data/alan/import/snowball/snowball/compiler/space.c
-        for (i = 0; i < n; i++) s[i] = p[i];
+        for (i = 0; i < n; i++) s[i] = (char)p[i];


Martin


At 06:11 PM 9/8/2009 -0400, Alan Bawden wrote:
>
>I write to suggest the enclosed tiny patch to the Snowball compiler.
>
>In an environment where I have defined the Snowball "symbol" type to be an
>unsigned 16-bit integer, the Microsoft C compiler is upset that the
>statement in question is truncating a 16-bit quantity down to an 8-bit
>quantity.  This patch makes the Microsoft compiler stop worrying about it.
>






More information about the Snowball-discuss mailing list