Skip to content

Commit 36cc84a

Browse files
committed
py: Fix msvc warning '*/ found outside of comment'
Also prevents some of the weaker syntax parsers out there treating the whole '*/*const*/' part as a comment
1 parent e97dddc commit 36cc84a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/vm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ mp_vm_return_kind_t mp_execute_bytecode(mp_code_state *code_state, volatile mp_o
133133
run_code_state: ;
134134
#endif
135135
// Pointers which are constant for particular invocation of mp_execute_bytecode()
136-
mp_obj_t */*const*/ fastn = &code_state->state[code_state->n_state - 1];
137-
mp_exc_stack_t */*const*/ exc_stack = (mp_exc_stack_t*)(code_state->state + code_state->n_state);
136+
mp_obj_t * /*const*/ fastn = &code_state->state[code_state->n_state - 1];
137+
mp_exc_stack_t * /*const*/ exc_stack = (mp_exc_stack_t*)(code_state->state + code_state->n_state);
138138

139139
// variables that are visible to the exception handler (declared volatile)
140140
volatile bool currently_in_except_block = MP_TAGPTR_TAG0(code_state->exc_sp); // 0 or 1, to detect nested exceptions

0 commit comments

Comments
 (0)