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 <[email protected]>
This commit is contained in:
@@ -89,7 +89,7 @@ DirectWindowInfo::SetState(direct_buffer_state bufferState,
|
|||||||
|
|
||||||
fBufferInfo->buffer_state = bufferState;
|
fBufferInfo->buffer_state = bufferState;
|
||||||
|
|
||||||
if (driverState != -1)
|
if ((int)driverState != -1)
|
||||||
fBufferInfo->driver_state = driverState;
|
fBufferInfo->driver_state = driverState;
|
||||||
|
|
||||||
if ((bufferState & B_DIRECT_MODE_MASK) != B_DIRECT_STOP) {
|
if ((bufferState & B_DIRECT_MODE_MASK) != B_DIRECT_STOP) {
|
||||||
|
|||||||
Reference in New Issue
Block a user