Subject: Fix - Re: Hash changed break Windows build
From: Mike Nordell (tamlin@algonet.se)
Date: Fri May 25 2001 - 06:45:26 CDT
The following seems to do the trick. At least it haven't crashed yet, and it
does compile.
diff -r1.5 ut_Xpm2Bmp.cpp
124,126c124,125
< UT_sint32 resultHash = hash.addEntry(bufSymbol,0,(void *)(k+1));
< UT_ASSERT(resultHash != -1);
<
--- > hash.insert(bufSymbol, (HashValType)(k+1)); > 164,165c163,164 < UT_HashEntry * pEntry = hash.findEntry(bufPixel); < *pPixel++ = ((UT_Byte)(pEntry->pData)) - 1; --- > const HashValType pEntry = hash.pick(bufPixel); > *pPixel++ = ((UT_Byte)(pEntry)) - 1;I haven't committed since I'm not 100% sure this is really sane.
/Mike
This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:07 CDT