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 Peter Baumann, 12 years ago

something very necessary, but affects more types → should be investigated and solved in a comprehensive action.

comment:2 by Heinrich Stamerjohanns, 12 years ago

Owner: set to Heinrich Stamerjohanns
Status: newaccepted

r_Range is an int, so initializing to INT_MIN and INT_MAX solves the problem for now.

comment:3 by Heinrich Stamerjohanns, 12 years ago

Resolution: fixed
Status: acceptedclosed

Fixed by 0ba75cc7fdb5

Note: See TracTickets for help on using tickets.