1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

BESM6: Avoid clang compiler warnings

This commit is contained in:
Mark Pizzolato 2022-08-03 11:29:39 -10:00
parent 91b84c76d1
commit fe100b7c2b
2 changed files with 3 additions and 2 deletions

View File

@ -541,7 +541,7 @@ void disk_format (UNIT *u)
log_data(fmtbuf, 5);
/* Печатаем идентификатор, адрес и контрольную сумму адреса. */
if (u->dptr->dctrl & DEB_TRC)
if (u->dptr->dctrl & DEB_TRC) {
if (IS_29MB(u))
besm6_debug ("::: формат МД %02o зона %04o память %05o skip %02o и-а-кса %010o %010o",
c->dev, c->zone, c->memory, ptr - memory -c ->memory,
@ -553,6 +553,7 @@ void disk_format (UNIT *u)
(int) (fmtbuf[0] >> 8 & BITS(30)),
(int) (fmtbuf[2] >> 14 & BITS(30)));
}
}
/*
* Чтение с диска.

View File

@ -510,7 +510,7 @@ t_stat vu_event (UNIT *u)
while (ch == '\n' || ch == EOF);
}
if (0 == strncmp(vu_gost[num], DISP_END, 7)) {
if (0 == strncmp((char *)vu_gost[num], DISP_END, 7)) {
// The "dispatcher's end" card, end of card image mode.
memset(vu_image[num], 0, 160);
vu_image[num][0] = vu_image[num][40] = 0xFFF;