diff options
| author | 2020-08-14 08:26:47 -0400 | |
|---|---|---|
| committer | 2020-08-14 08:26:50 -0400 | |
| commit | 34ec64233a57cea75faa66029e2e1b50b9587d87 (patch) | |
| tree | 32964a6281fde3d1957ce7966415848a983aa318 | |
| parent | Merge pull request #4495 from lioncash/conv (diff) | |
| download | yuzu-34ec64233a57cea75faa66029e2e1b50b9587d87.tar.gz yuzu-34ec64233a57cea75faa66029e2e1b50b9587d87.tar.xz yuzu-34ec64233a57cea75faa66029e2e1b50b9587d87.zip | |
macro-interpreter: Resolve -Wself-assign-field warning
This was assigning the field to itself, which is a no-op. The size
doesn't change between its initial assignment and this one, so this is a
safe change to make.
| -rw-r--r-- | src/video_core/macro/macro_interpreter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/video_core/macro/macro_interpreter.cpp b/src/video_core/macro/macro_interpreter.cpp index aa5256419..bd01fd1f2 100644 --- a/src/video_core/macro/macro_interpreter.cpp +++ b/src/video_core/macro/macro_interpreter.cpp | |||
| @@ -34,7 +34,6 @@ void MacroInterpreterImpl::Execute(const std::vector<u32>& parameters, u32 metho | |||
| 34 | this->parameters = std::make_unique<u32[]>(num_parameters); | 34 | this->parameters = std::make_unique<u32[]>(num_parameters); |
| 35 | } | 35 | } |
| 36 | std::memcpy(this->parameters.get(), parameters.data(), num_parameters * sizeof(u32)); | 36 | std::memcpy(this->parameters.get(), parameters.data(), num_parameters * sizeof(u32)); |
| 37 | this->num_parameters = num_parameters; | ||
| 38 | 37 | ||
| 39 | // Execute the code until we hit an exit condition. | 38 | // Execute the code until we hit an exit condition. |
| 40 | bool keep_executing = true; | 39 | bool keep_executing = true; |