Skip to content

Commit

Permalink
Merge pull request #7 from xemu-project/fix/apply_operation-default-case
Browse files Browse the repository at this point in the history
Add default case to apply_operation output type check
  • Loading branch information
abaire authored Jan 7, 2025
2 parents d5a7308 + 863fc0f commit a174649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nv2a_vsh_emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ static inline void apply_operation(Nv2aVshExecutionState *state,
case NV2ART_ADDRESS:
outreg = state->address_reg;
break;

default:
assert(!"Invalid output type");
return;
}

if (out->writemask & NV2AWM_X) {
Expand Down

0 comments on commit a174649

Please sign in to comment.