summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-11 22:04:12 -0400
committerbd <bdunahu@operationnull.com>2025-05-11 22:04:12 -0400
commite98aadede1f2151e50a8fdb3dc69d306590718eb (patch)
treeac1ceb6fbcc72e6010f6080d87fc1cf7921b42c8 /src
parentc9d4b54150b67e1701a920719ba2c7c03d897d27 (diff)
Fix bug where vector registers were not cleared when length was 0
Diffstat (limited to 'src')
-rw-r--r--src/wb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wb.cc b/src/wb.cc
index 89ee298..7320f4f 100644
--- a/src/wb.cc
+++ b/src/wb.cc
@@ -93,7 +93,7 @@ std::array<signed int, V_R_LIMIT> WB::copy_extra_vector_elements()
int i;
std::array<signed int, V_R_LIMIT> v;
- if (this->curr_instr->type == S_VECT) {
+ if (this->curr_instr->type == R_VECT) {
if (this->curr_instr->slot_B == 0) {
v = {0};
return v;