Opened 8 years ago
Closed 8 years ago
#12832 closed bug (fixed)
[Patch] JobSetupWindow.cpp: fix clang warning
Reported by: | mt | Owned by: | phoudoin |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Drivers/Printers | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Since 'lastPage' is int32, use INT32_MAX instead of LONG_MAX.
/home/haiku/haiku/haiku/src/add-ons/print/drivers/preview/JobSetupWindow.cpp:45:45: warning: comparison of constant 9223372036854775807 with expression of type 'int32' (aka 'int') is always false [-Wtautological-constant-out-of-range-compare] bool allPages = firstPage == 1 && lastPage == LONG_MAX; ~~~~~~~~ ^ ~~~~~~~~
Attachments (1)
Change History (3)
by , 8 years ago
Attachment: | 0020-JobSetupWindow.cpp-fix-clang-warning.patch added |
---|
comment:1 by , 8 years ago
patch: | 0 → 1 |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in hrev50402.