tgl
tgl copied to clipboard
Type warnings
When compiling on a 64bit architecture there are many type warnings. Some even seem are errors, like inconsistent type for message id.
This fixes a few of these issues (not all).
Thx for pull requests. It will take some time to merge them, but I'll try to it today
Updated to follow new commits in master. Also changed tree to use long instead of int because of lrand48
return type.
No you should not use long y in trees. It's just random key to balance tree, no need to use more memory.
That's true, the implementation of lrand48
uses a uint32_t
internally, I'll add a cast to that so the warnings don't show.
Ended up creating a function irand48
that does the cast to int
. It is inside tree.h
and declared as static inline
so all files that deal with the tree have it included.
There are still 175 warnings, most associated with pointer arithmetic.
That's why I don't want to spend time to fix them