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:
parent
668ecf4f09
commit
f17d2fbb4e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user