Page MenuHomePhabricator

[Svace] Enum to boolean
Closed, ResolvedPublic

Description

**Warning Message

max_unit has enum type which is not isomorphic with boolean type, however it is used as a boolean expression

//helper.c//

char*
time_convert_interval(double time, Time_Unit *recieved_unit, Time_Unit max_unit)
{
   if (!max_unit)
     {
        max_unit = TIME_UNIT_LAST;
     }

Related Objects

Deepwarrior moved this task from Defects to 1.1 on the Profiling Viewer board.
Deepwarrior edited projects, added Profiling Viewer (1.1); removed Profiling Viewer.
Deepwarrior moved this task from Backlog to Doing on the Profiling Viewer (1.1) board.
NikaWhite moved this task from Review to Done on the Profiling Viewer (1.1) board.Oct 19 2017, 3:42 AM
NikaWhite closed this task as Resolved.Dec 26 2017, 8:52 AM