• Alan Coopersmith's avatar
    Fix implicit conversion warnings in _XlcCreateDefaultCharSet · 30656fd6
    Alan Coopersmith authored
    lcCharSet.c:187:50: warning: implicit conversion changes signedness:
          'int' to 'unsigned long' [-Wsign-conversion]
        tmp = Xmalloc(name_len + 1 + ct_sequence_len + 1);
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
    ../../include/X11/Xlibint.h:453:32: note: expanded from macro 'Xmalloc'
                           ~~~~~~  ^~~~
    lcCharSet.c:192:31: warning: implicit conversion changes signedness:
          'int' to 'unsigned long' [-Wsign-conversion]
        memcpy(tmp, name, name_len+1);
        ~~~~~~            ~~~~~~~~^~
    lcCharSet.c:216:45: warning: implicit conversion changes signedness:
          'int' to 'unsigned long' [-Wsign-conversion]
        memcpy(tmp, ct_sequence, ct_sequence_len+1);
        ~~~~~~                   ~~~~~~~~~~~~~~~^~
    lcCharSet.c:183:16: warning: implicit conversion loses integer precision:
          'unsigned long' to 'int' [-Wshorten-64-to-32]
        name_len = strlen(name);
                 ~ ^~~~~~~~~~~~
    lcCharSet.c:184:23: warning: implicit conversion loses integer precision:
          'unsigned long' to 'int' [-Wshorten-64-to-32]
        ct_sequence_len = strlen(ct_sequence);
                        ~ ^~~~~~~~~~~~~~~~~~~
    lcCharSet.c:198:37: warning: implicit conversion loses integer precision:
         'long' to 'unsigned int' [-Wshorten-64-to-32]
            unsigned int length = colon - charset->name;
                         ~~~~~~   ~~~~~~^~~~~~~~~~~~~~~
    Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    30656fd6
Name
Last commit
Last update
..
lcUniConv Loading commit data...
ICWrap.c Loading commit data...
IMWrap.c Loading commit data...
Makefile.am Loading commit data...
XDefaultIMIF.c Loading commit data...
XDefaultOMIF.c Loading commit data...
Xaixlcint.h Loading commit data...
XimImSw.h Loading commit data...
XimProto.h Loading commit data...
XimThai.h Loading commit data...
XimTrInt.h Loading commit data...
XimTrX.h Loading commit data...
XimTrans.h Loading commit data...
Ximint.h Loading commit data...
XimintL.h Loading commit data...
XimintP.h Loading commit data...
XlcDL.c Loading commit data...
XlcGeneric.h Loading commit data...
XlcPubI.h Loading commit data...
XlcPublic.h Loading commit data...
XlcSL.c Loading commit data...
Xlcint.h Loading commit data...
imKStoUCS.c Loading commit data...
lcCT.c Loading commit data...
lcCharSet.c Loading commit data...
lcConv.c Loading commit data...
lcDB.c Loading commit data...
lcDynamic.c Loading commit data...
lcFile.c Loading commit data...
lcGeneric.c Loading commit data...
lcInit.c Loading commit data...
lcPrTxt.c Loading commit data...
lcPubWrap.c Loading commit data...
lcPublic.c Loading commit data...
lcRM.c Loading commit data...
lcStd.c Loading commit data...
lcTxtPr.c Loading commit data...
lcUTF8.c Loading commit data...
lcUtil.c Loading commit data...
lcWrap.c Loading commit data...
mbWMProps.c Loading commit data...
mbWrap.c Loading commit data...
utf8WMProps.c Loading commit data...
utf8Wrap.c Loading commit data...
wcWrap.c Loading commit data...
xim_trans.c Loading commit data...