Skip to content

Commit

Permalink
vm: Fix a warning found by -Wextra
Browse files Browse the repository at this point in the history
The code probably can't actually fall through to the next case
since the true branch is an error case, but it looks cleaner this way.
  • Loading branch information
erg committed May 7, 2021
1 parent 8330230 commit 20cefa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm/alien.cpp
Expand Up @@ -12,8 +12,7 @@ char* factor_vm::pinned_alien_offset(cell obj) {
general_error(ERROR_EXPIRED, obj, false_object);
if (to_boolean(ptr->base))
type_error(ALIEN_TYPE, obj);
else
return (char*)ptr->address;
return (char*)ptr->address;
}
case F_TYPE:
return NULL;
Expand Down

0 comments on commit 20cefa0

Please sign in to comment.