--- np2/win9x/dialog/d_serial.cpp 2007/01/08 07:52:01 1.16 +++ np2/win9x/dialog/d_serial.cpp 2007/01/08 08:52:22 1.17 @@ -388,7 +388,7 @@ static void pc9861getspeed(HWND hWnd, co mode = *(m->dip_mode); r = SendDlgItemMessage(hWnd, m->idc_speed, CB_GETCURSEL, 0, 0); if (r != CB_ERR) { - UINT speed = r; + UINT speed = (UINT)r; if (speed > (NELEMENTS(pc9861k_speed) - 1)) { speed = NELEMENTS(pc9861k_speed) - 1; }