mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 10:26:16 +01:00
Fix signedness warning in glib/win_iconv.c
glib/win_iconv.c: In function 'iso2022jp_mbtowc': glib/win_iconv.c:1818:18: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (cv->mode != ISO2022_MODE(cs, shift)) ^~ glib/win_iconv.c: In function 'iso2022jp_wctomb': glib/win_iconv.c:1889:18: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'long unsigned int'} and 'int' if (cv->mode == ISO2022_MODE(cs, shift)) ^~
This commit is contained in:
parent
78af147721
commit
d16d780bf4
@ -1680,7 +1680,7 @@ utf32_wctomb(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize)
|
||||
* Use MLang instead.
|
||||
*/
|
||||
|
||||
#define ISO2022_MODE(cs, shift) (((cs) << 8) | (shift))
|
||||
#define ISO2022_MODE(cs, shift) ((((DWORD) cs) << 8) | (shift))
|
||||
#define ISO2022_MODE_CS(mode) (((mode) >> 8) & 0xFF)
|
||||
#define ISO2022_MODE_SHIFT(mode) ((mode) & 0xFF)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user