1
0
mirror of https://github.com/simh/simh.git synced 2026-02-10 10:11:20 +00:00

PDP11: Cleanup potential compiler warnings

This commit is contained in:
Mark Pizzolato
2021-08-13 09:11:42 -07:00
parent f95b20e1f3
commit 9166219476
5 changed files with 9 additions and 9 deletions

View File

@@ -556,7 +556,7 @@ display_delay(int t, int slowdown)
return;
elapsed = os_elapsed(); /* read and reset elapsed timer */
if (elapsed == ~0L) { /* first time thru? */
if (elapsed == (unsigned long)(~0L)) {/* first time thru? */
slowdown = 0; /* no adjustments */
elapsed = sim_time;
}
@@ -946,7 +946,7 @@ phosphor_init(struct phosphor *phosphors, int nphosphors, int color)
static struct display *
find_type(enum display_type type)
{
int i;
size_t i;
struct display *dp;
for (i = 0, dp = displays; i < ELEMENTS(displays); i++, dp++)

View File

@@ -2923,9 +2923,9 @@ character(int c)
lp_suppress = x == 0 || x == 5;
for (y = 0; y < 8; ++y) {
int delay_skew;
int delay_skew = 0;
int compress = vt11_csp_w <= 12 && x == 2;
int dot = col & (1<<y), nxtdot;
int dot = col & (1<<y), nxtdot = 0;
if (dot) {
illum2(xbase + xllc, ybase + yllc);
@@ -2941,7 +2941,7 @@ character(int c)
++yllc;
if (dot) {
illum2(xbase + xllc, ybase + yllc);
if (!compress || nxtdot == 0)
if (!compress || (nxtdot == 0))
illum2(xbase + xllc + 1, ybase + yllc);
}
if (italics && delay_skew)