run-time check fails in CFloodControl::GetBytes

Bug #717051 reported by Gunnar Beutner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shroudBNC
New
Medium
Unassigned

Bug Description

Line:
if ((size_t)((g_CurrentTime - m_LastCommand) * FLOODFADEOUT) > m_Bytes) {

Message:
Run-Time Check Failure #1 - A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example:

        char c = (i & 0xFF);

Changing the code in this way will not affect the quality of the resulting optimized code.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.