Skip to content

Commit a6045d4

Browse files
author
Noam Preil
committed
Fix removed newline from b3e9165
1 parent b3e9165 commit a6045d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assembler/directives.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,8 @@ int handle_list(struct assembler_state *state, char **argv, int argc) {
971971
int handle_map(struct assembler_state *state, char **argv, int argc) {
972972
// .map filename, lineno, code
973973
free(((source_map_t *)stack_peek(state->source_map_stack))->file_name);
974-
((source_map_t*)stack_peek(state->source_map_stack))->file_name = strdup(argv[0]); add_source_map((source_map_t *)stack_peek(state->source_map_stack),
974+
((source_map_t*)stack_peek(state->source_map_stack))->file_name = strdup(argv[0]);
975+
add_source_map((source_map_t *)stack_peek(state->source_map_stack),
975976
atoi(argv[1]), argv[2], state->PC, 1); // TODO: figure out actual length
976977
return 1;
977978
}

0 commit comments

Comments
 (0)