From 11735fe317c1b860fca0b33b9b61b7d45fff3acb Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 1 Jul 2000 14:08:31 +0000 Subject: [PATCH] A small fix from Tom. --- src/type1z/z1parse.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/type1z/z1parse.c b/src/type1z/z1parse.c index 06e106959..55c013f24 100644 --- a/src/type1z/z1parse.c +++ b/src/type1z/z1parse.c @@ -765,9 +765,19 @@ Store_Integer: switch (field->size) { - case 1: *(FT_Byte*)q = (FT_Byte)val; break; - case 2: *(FT_UShort*)q = (FT_UShort)val; break; - default: *(FT_Long*)q = val; + case 1: + *(FT_Byte*)q = (FT_Byte)val; + break; + case 2: + *(FT_UShort*)q = (FT_UShort)val; + break; +#if SIZEOF_INT == 4 + case 4: + *(FT_Int*)q = (FT_Int)val; + break; +#endif + default: + *(FT_Long*)q = val; } } break;