diff options
author | comex <comexk@gmail.com> | 2020-08-31 10:34:46 -0400 |
---|---|---|
committer | comex <comexk@gmail.com> | 2020-12-06 18:59:22 -0500 |
commit | 3373149fdc4dd4dc041fcd5501db5b4ccf0af7bb (patch) | |
tree | 5c9c158f9ec5804cbec7c63bf7957e1a7280f35d /src/common/memory_detect.cpp | |
parent | 0dc234c5ea51667c99d64c5f13f8a11cc4865455 (diff) |
hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp
- Add a type check so that calling Push with an invalid type produces a
compile error rather than a linker error.
- vi.cpp was calling Push with a variable of type `std::size_t`.
There's no explicit overload for `size_t`, but there is one for `u64`,
which on most platforms is the same type as `size_t`. On macOS,
however, it isn't: both types are 64 bits, but `size_t` is `unsigned
long` and `u64` is `unsigned long long`. Regardless, it makes more
sense to explicitly use `u64` here instead of `size_t`.
Diffstat (limited to 'src/common/memory_detect.cpp')
0 files changed, 0 insertions, 0 deletions