app_server: fix clang warning tautological-constant-out-of-range-compare

Clang message: error: result of comparison of constant -1 with expression
of type 'direct_driver_state' is always true

Change-Id: I0ae352985a143f1d97b02ca01550480613db6c3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2394
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
X512 2020-03-22 11:36:51 +09:00 committed by waddlesplash
parent 668ecf4f09
commit f17d2fbb4e

View File

@ -89,7 +89,7 @@ DirectWindowInfo::SetState(direct_buffer_state bufferState,
fBufferInfo->buffer_state = bufferState;
if (driverState != -1)
if ((int)driverState != -1)
fBufferInfo->driver_state = driverState;
if ((bufferState & B_DIRECT_MODE_MASK) != B_DIRECT_STOP) {