Skip to content

Commit 660daa7

Browse files
committed
fixup! erts: Fix bug in binary_to_term
1 parent a33c1e0 commit 660daa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erts/emulator/beam/external.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ static BIF_RETTYPE binary_to_term_int(Process* p, Eterm bin, B2TContext *ctx)
21282128
}while (ctx->reds > 0 || ctx->state >= B2TDone);
21292129

21302130
if (is_non_value(ctx->trap_bin)) {
2131-
ERTS_ASSERT(ctx->state < B2TDecodeInit);
2131+
ERTS_ASSERT(ctx->state < B2TDecode);
21322132
ctx = b2t_export_context(p, ctx);
21332133
ASSERT(is_value(ctx->trap_bin));
21342134
}

0 commit comments

Comments
 (0)