DescriptionChange SuperFastHash signature to use size_t, not int.
Move the size check and static_cast to from the generic Hash to the specific SuperFastHash wrapper.
Hash uses a reasonable size_t type, but the specific SuperFastHash uses an int for size. This is leaking a mistake from third_party code into our wrapper. Client code that wants to be clear that it is using SuperFastHash specifically (not just generic Hash) should be able to do so with a size_t type.
Committed: https://crrev.com/3bec18d235b327e9b18c1f7efa07c6fc46d32715
Cr-Commit-Position: refs/heads/master@{#389818}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 17 (7 generated)
|