* it.
*/
if (state->s0 != 0 &&
- ((state->s0 & 0x0F000000) >> 24) >= euc->nchars[(state->s0 >> 28)-1]) {
+ ((state->s0 & 0x0F000000) >> 24) >=
+ (unsigned)euc->nchars[(state->s0 >> 28)-1]) {
emit(emitctx, euc->to_ucs(state->s0));
state->s0 = 0;
}
return FALSE;
}
- if (state->s0 != desired_state) {
+ if (state->s0 != (unsigned)desired_state) {
emit(emitctx, '~');
emit(emitctx, desired_state ? '{' : '}');
state->s0 = desired_state;
* to the effort of emitting the sequence.
*/
cont = iso->escapes[i].container;
- if (((state->s1 >> (6*cont)) & 0x3F) != subcharset) {
+ if (((state->s1 >> (6*cont)) & 0x3F) != (unsigned)subcharset) {
for (j = 0; iso->escapes[i].sequence[j]; j++)
emit(emitctx, iso->escapes[i].sequence[j]);
state->s1 &= iso->escapes[i].andbits;
} else {
/* Emit SI or SO, but only if the current container isn't already
* the right one. */
- if (((state->s1 >> 28) & 7) != cont) {
+ if (((state->s1 >> 28) & 7) != (unsigned)cont) {
emit(emitctx, cont ? SO : SI);
state->s1 = (state->s1 & 0x8FFFFFFF) | (cont << 28);
}
while (i+1 < j) {
k = (i+j)/2;
c = sd->ucs2sbcs[k];
- if (input_chr < sd->sbcs2ucs[c])
+ if (input_chr < (long int)sd->sbcs2ucs[c])
j = k;
- else if (input_chr > sd->sbcs2ucs[c])
+ else if (input_chr > (long int)sd->sbcs2ucs[c])
i = k;
else {
emit(emitctx, c);