tint/transform: Fix hasher return type
These should return `size_t`, not `uint64_t`. Fixes x86 build. Change-Id: I83125afc3bce9a9dab7d53c4818f9de3daf4cfb2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101320 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
97c9e0ba9f
commit
c8278e5cbd
|
@ -54,7 +54,7 @@ struct Hasher<DynamicIndex> {
|
|||
/// The hash function for the DynamicIndex
|
||||
/// @param d the DynamicIndex to hash
|
||||
/// @return the hash for the given DynamicIndex
|
||||
uint64_t operator()(const DynamicIndex& d) const { return utils::Hash(d.slot); }
|
||||
size_t operator()(const DynamicIndex& d) const { return utils::Hash(d.slot); }
|
||||
};
|
||||
|
||||
} // namespace tint::utils
|
||||
|
@ -149,9 +149,7 @@ struct Std140::State {
|
|||
struct Hasher {
|
||||
/// @param fn the LoadFnKey to hash
|
||||
/// @return the hash for the given LoadFnKey
|
||||
uint64_t operator()(const LoadFnKey& fn) const {
|
||||
return utils::Hash(fn.var, fn.indices);
|
||||
}
|
||||
size_t operator()(const LoadFnKey& fn) const { return utils::Hash(fn.var, fn.indices); }
|
||||
};
|
||||
|
||||
/// Equality operator
|
||||
|
|
Loading…
Reference in New Issue