Skip to content

Commit

Permalink
fix: code format and clean
Browse files Browse the repository at this point in the history
  • Loading branch information
yang.zhao2 committed Jan 4, 2024
1 parent 079b090 commit 6f54e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/bytecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ static int JS_WriteFunctionTag(BCWriterState* s, JSValueConst obj) {
dbuf_putc(&s->dbuf, 255);
dbuf_putc(&s->dbuf, 73); // 'I'
dbuf_putc(&s->dbuf, 67); // 'C'
if (b->ic == NULL) {
if (b->ic == NULL) {
bc_put_leb128(s, 0);
} else {
bc_put_leb128(s, b->ic->count);
Expand Down Expand Up @@ -1607,7 +1607,7 @@ static JSValue JS_ReadFunctionTag(BCReaderState* s) {
}

/** special column number check logic for V1(.kbc1 file) bytecode format. */
if (s->buf_end - s->ptr > 4 && s->ptr[0] == 255 && s->ptr[1] == 67 && s->ptr[2] == 79 && s->ptr[3] == 76) {
if (s->buf_end - s->ptr > 4 && s->ptr[0] == 255 && s->ptr[1] == 67 && s->ptr[2] == 79 && s->ptr[3] == 76) {
s->ptr += 4;
if (bc_get_leb128_int(s, &b->debug.column_num)) {
goto fail;
Expand Down

0 comments on commit 6f54e7e

Please sign in to comment.