Opened 12 years ago
Closed 12 years ago
#208 closed defect (fixed)
r_Range may fail on 64bit systems
Reported by: | Heinrich Stamerjohanns | Owned by: | Heinrich Stamerjohanns |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | raslib | Version: | |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
r_range is actually an integer, but in polygon.cc values are
initialized to LONG_MIN and LONG_MAX values.
This might not work on 64-bits system, when LONG_MIN and LONG_MAX
may come from /usr/include/limits.h and are 64-bit wide.
Make either r_Range a true long or use integers to initialize values.
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
r_Range is an int, so initializing to INT_MIN and INT_MAX solves the problem for now.
Note:
See TracTickets
for help on using tickets.
something very necessary, but affects more types → should be investigated and solved in a comprehensive action.