Cleanup: mixing enum/non-enum type warning in conditional expression

This commit is contained in:
Campbell Barton 2021-08-10 12:04:17 +10:00
parent 26fea4de63
commit 3335f852a1
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ static void nupdate_ak_bezt(void *node, void *data)
}
/* For interpolation type, select the highest value (enum is sorted). */
ak->handle_type = MAX2(ak->handle_type, bezt_handle_type(bezt));
ak->handle_type = MAX2((eKeyframeHandleDrawOpts)ak->handle_type, bezt_handle_type(bezt));
/* For extremes, detect when combining different states. */
const char new_extreme = bezt_extreme_type(chain);