fix compile errors due to making some fields const

This commit is contained in:
eehouse 2010-02-24 04:28:22 +00:00
parent c6e9cb36d0
commit 6e9fb31f60

View file

@ -137,7 +137,7 @@ skipBitmaps( LinuxDictionaryCtxt* ctxt, FILE* dictF )
for ( tile = 0; tile < ctxt->super.nFaces; ++tile ) { for ( tile = 0; tile < ctxt->super.nFaces; ++tile ) {
XP_UCHAR* facep = ctxt->super.facePtrs[(short)tile]; const XP_UCHAR* facep = ctxt->super.facePtrs[(short)tile];
if ( IS_SPECIAL(*facep) ) { if ( IS_SPECIAL(*facep) ) {
XP_U16 asIndex = (XP_U16)*facep; XP_U16 asIndex = (XP_U16)*facep;
XP_U8 txtlen; XP_U8 txtlen;
@ -168,7 +168,7 @@ dict_splitFaces( DictionaryCtxt* dict, const XP_U8* utf8,
XP_U16 nBytes, XP_U16 nFaces ) XP_U16 nBytes, XP_U16 nFaces )
{ {
XP_UCHAR* faces = XP_MALLOC( dict->mpool, nBytes + nFaces ); XP_UCHAR* faces = XP_MALLOC( dict->mpool, nBytes + nFaces );
XP_UCHAR** ptrs = XP_MALLOC( dict->mpool, nFaces * sizeof(ptrs[0])); const XP_UCHAR** ptrs = XP_MALLOC( dict->mpool, nFaces * sizeof(ptrs[0]));
XP_U16 ii; XP_U16 ii;
XP_Bool isUTF8 = dict->isUTF8; XP_Bool isUTF8 = dict->isUTF8;
XP_UCHAR* next = faces; XP_UCHAR* next = faces;