Skip to content

Update builder.h - #3

Open
curtis-sun wants to merge 1 commit into
stoianmihail:mainfrom
curtis-sun:main
Open

Update builder.h#3
curtis-sun wants to merge 1 commit into
stoianmihail:mainfrom
curtis-sun:main

Conversation

@curtis-sun

@curtis-sun curtis-sun commented Jun 17, 2022

Copy link
Copy Markdown
  1. In function "Finalize", if range and num_bins_ are both power of 2, variable "shift_" shoule plus 1 more. Otherwise, the range of shifted keys may be beyond the bound specified by num_bins_.
  2. In function "TransformIntoRadixTable", tree_.front().second[max_prefix+1] is not assigned.

1. In function "Finalize", if range and num_bins_ are both power of 2, shift_ shoule plus 1 to adapt to num_bins.
2. In function "TransformIntoRadixTable", tree_.front().second[max_prefix+1] is not assigned.
@stoianmihail

Copy link
Copy Markdown
Owner

Hi, Curtis!

First, thanks for patch! I'll take a closer look on week-end.

Until then, could you please fix the typos in the first subcomment? I mean this part: "shift_ shoule plus 1 to adapt to num_bins" -- this way we avoid any confusion of what's meant. Thanks!

@stoianmihail stoianmihail reopened this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants