Skip to content

Commit

Permalink
BESM6: Avoid clang compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
markpizz committed Aug 3, 2022
1 parent 91b84c7 commit fe100b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion BESM6/besm6_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -552,6 +552,7 @@ void disk_format (UNIT *u)
c->dev, c->zone, c->track, c->memory, (uint32) (ptr - memory -c ->memory),
(int) (fmtbuf[0] >> 8 & BITS(30)),
(int) (fmtbuf[2] >> 14 & BITS(30)));
}
}

/*
Expand Down
2 changes: 1 addition & 1 deletion BESM6/besm6_vu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe100b7

Please sign in to comment.