NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-hp300/50852: src/sys/arch/hp300/stand/common/ite.c:239: bad expression



>Number:         50852
>Category:       port-hp300
>Synopsis:       src/sys/arch/hp300/stand/common/ite.c:239: bad expression
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-hp300-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 26 10:55:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160226
>Organization:
>Environment:
>Description:
[src/sys/arch/hp300/stand/common/ite.c:239]: (error) Expression 'whichconsole=++whichconsole%(NITE+1)' depends on order of evaluation of side effects

Source code is

   whichconsole = ++whichconsole % (NITE+1);

Maybe better code

   whichconsole = (whichconsole + 1) % (NITE+1);

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index