diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-20 20:27:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-20 20:27:39 +0000 |
commit | 8ffaa3998341dba6c53482a18aedb87618c384e1 (patch) | |
tree | 13d84c8e451105b911454c96a1638fb35f2a84b9 | |
parent | d761491ef104621b5d5682f001eb471cb75d2dc3 (diff) |
Cast unsigned to signed when you want to check for negative values.
-rw-r--r-- | sys/dev/ic/aic6360.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic6360.c b/sys/dev/ic/aic6360.c index e60114c9d3e..c9e3539016a 100644 --- a/sys/dev/ic/aic6360.c +++ b/sys/dev/ic/aic6360.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic6360.c,v 1.9 2005/12/03 16:53:15 krw Exp $ */ +/* $OpenBSD: aic6360.c,v 1.10 2006/04/20 20:27:38 miod Exp $ */ /* $NetBSD: aic6360.c,v 1.52 1996/12/10 21:27:51 thorpej Exp $ */ #ifdef DDB @@ -1007,7 +1007,7 @@ nextbyte: switch (sc->sc_imess[0]) { case MSG_CMDCOMPLETE: - if (sc->sc_dleft < 0) { + if ((long)sc->sc_dleft < 0) { sc_link = acb->xs->sc_link; printf("%s: %d extra bytes from %d:%d\n", sc->sc_dev.dv_xname, -sc->sc_dleft, |