Skip to content

Commit

Permalink
gcc44 warnings: Shift in order to fit in 8 bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Wildner committed Oct 3, 2009
1 parent e18b367 commit ce0ec1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.bin/doscmd/int14.c
Expand Up @@ -438,7 +438,7 @@ com_set_line(struct com_data_struct *cdsp, unsigned char port, unsigned char par
"com_set_line: going with cflag 0x%X iflag 0x%X speed %d.\n",
cdsp->tty.c_cflag, cdsp->tty.c_iflag, speed);
div_lo = (115200 / spd) & 0x00ff;
div_hi = (115200 / spd) & 0xff00;
div_hi = ((115200 / spd) & 0xff00) >> 8;
cdsp->div_latch[DIV_LATCH_LOW] = div_lo;
cdsp->div_latch[DIV_LATCH_HIGH] = div_hi;
errno = 0;
Expand Down

0 comments on commit ce0ec1e

Please sign in to comment.