Opened 16 years ago

Closed 11 years ago

#132 closed task (fixed)

[amd64] "(GB_INT) -1" shows up as "4294967295" (2^32-1)

Reported by: epruesse Owned by: westram
Priority: normal Milestone:
Component: Library (DB) Version:
Keywords: Cc:

Description

Apparently, GB_INT is always stored in a long. Therefor negative values are not converted properly.

To reproduce: Create integer database field, write -1 into it, reload database in amd64, view species entry …

Change History (5)

comment:1 Changed 15 years ago by eissler

still open in svn-version 5962 on Ubuntu 9.04 (32 and 64 bit)

comment:2 Changed 15 years ago by westram

  • Owner changed from devel to westram
  • Status changed from new to assigned

comment:3 Changed 15 years ago by westram

  • Type changed from defect to task
  • fixed by [5965]
  • still needs work
    • change prototypes for GB_write_int, GB_read_int (long → int32_t)
    • fix 64bit warnings

comment:4 Changed 15 years ago by westram

  • Component changed from !NoIdea to DB-Engine
  • Status changed from assigned to new
  • as well fix type of AW_awar::write_int / read_int
    • needed cause GB_write_int does only accept int32
    • helps to detect other int-awars which are misused to store pointers (see also [6147])
  • same for AW_window::insert_selection, AW_window::insert_default_selection

comment:5 Changed 11 years ago by westram

  • Resolution set to fixed
  • Status changed from new to closed

somehow

Note: See TracTickets for help on using tickets.