mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
fix compile errors due to making some fields const
This commit is contained in:
parent
c6e9cb36d0
commit
6e9fb31f60
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue