Splint cleanups.

svn path=/trunk/yasm/; revision=595
0.3
Peter Johnson 23 years ago
parent fa5199cf4d
commit a6d468b938
  1. 2
      libyasm/bytecode.c
  2. 2
      src/bytecode.c

@ -649,7 +649,7 @@ bc_tobytes(bytecode *bc, unsigned char *buf, unsigned long *bufsize,
InternalError(_("Unknown bytecode type"));
}
if (!error && ((destbuf - origbuf) != datasize))
if (!error && ((unsigned long)(destbuf - origbuf) != datasize))
InternalError(_("written length does not match optimized length"));
return mybuf;
}

@ -649,7 +649,7 @@ bc_tobytes(bytecode *bc, unsigned char *buf, unsigned long *bufsize,
InternalError(_("Unknown bytecode type"));
}
if (!error && ((destbuf - origbuf) != datasize))
if (!error && ((unsigned long)(destbuf - origbuf) != datasize))
InternalError(_("written length does not match optimized length"));
return mybuf;
}

Loading…
Cancel
Save