Compile failure on 32 bit system due to mixing ulong, uint64_t and uint32_t

Bug #485658 reported by Trond Norbye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
High
Trond Norbye

Bug Description

The problem is that in drizzled.cc we define refresh_version as an uint64_t, but we assign it to the version member of Open_table_state. This is a ulong, so in an LP64 configuration they have the same size, but in ILP32 it is only 32 bit wide. However in TableShare we assign refresh_version to version, and this definition of version is uint32_t. This assignment should generate a warning on all configurations, but for some reason it seems that it is only Sun Studio in 32 bit mode that picks it up.

Changed in drizzle:
assignee: nobody → Trond Norbye (trond-norbye)
status: New → In Progress
Changed in drizzle:
status: In Progress → Fix Released
importance: Undecided → High
milestone: none → bell
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.