Changeset 1037


Ignore:
Timestamp:
11/30/20 03:40:28 (3 months ago)
Author:
Maciej Komosinski
Message:

One less compiler warning about assignment/comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/loggers/loggers.cpp

    r874 r1037  
    162162                        msg = ssprintf("%d error(s)", getErrorCount());
    163163                int w;
    164                 if (w = getWarningCount() - getErrorCount())
     164                if ((w = getWarningCount() - getErrorCount()))
    165165                        msg += ssprintf("%s%d warning(s)", (getErrorCount() ? ", " : ""), w);
    166                 if (w = getInfoCount() - getWarningCount())
     166                if ((w = getInfoCount() - getWarningCount()))
    167167                        msg += ssprintf("%s%d message(s)", (getWarningCount() ? ", " : ""), w);
    168168                return msg;
Note: See TracChangeset for help on using the changeset viewer.