forked from Unity-Technologies/crunch
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
On February 16 of 2014 @gimhael committed the patch 4a63c5a named “Linux64 compilation fixes.” doing this:
- size_t new_capacity = min_new_capacity;
+ ptr_bits_t new_capacity = min_new_capacity;
if ((grow_hint) && (!math::is_power_of_2(new_capacity)))
new_capacity = math::next_pow2(new_capacity);I submitted this patch as PR BinomialLLC#13 to @BinomialLLC on July 23 of 2017 in hope to get it upstreamed but the patch never got merged neither the submission got an answer for unknown reason. This PR is tracked on our side in #2.
I notice today that @richgel999 merged on October 9 of 2020 the PR BinomialLLC#25 with the patch 3a445a9 by @griffin2000 committed on November 13 of 2018 and named “Avoid ambiguity error on GCC” that seems to touch the same code, but doing different things instead:
size_t new_capacity = min_new_capacity;
- if ((grow_hint) && (!math::is_power_of_2(new_capacity)))
- new_capacity = math::next_pow2(new_capacity);
+ if ((grow_hint) && (!math::is_power_of_2((uint64)new_capacity)))
+ new_capacity = math::next_pow2((uint64)new_capacity);- Are the two patches meant to fix the same bug?
- Which implementation is the best one?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested