Skip to content

Commit 1ded25a

Browse files
josevalimbjorng
andauthored
Apply suggestions from code review
Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com>
1 parent e8bb33a commit 1ded25a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erts/emulator/beam/erl_bif_binary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ static Eterm do_split_global_result(Process *p, Eterm subject, BinaryFindContext
18971897

18981898
if (!(extracted_size == 0 && do_trim)) {
18991899
if (extracted_size == 0) {
1900-
if (empty_extracted == THE_NON_VALUE) {
1900+
if (is_non_value(empty_extracted)) {
19011901
empty_extracted = HEAP_BITSTRING(fa->factory.hp, base, 0, 0);
19021902
fa->factory.hp += heap_bits_size(0);
19031903
}
@@ -1927,7 +1927,7 @@ static Eterm do_split_global_result(Process *p, Eterm subject, BinaryFindContext
19271927

19281928
if (!(extracted_size == 0 && do_trim)) {
19291929
if (extracted_size == 0) {
1930-
if (empty_extracted == THE_NON_VALUE) {
1930+
if (is_non_value(empty_extracted)) {
19311931
empty_extracted = HEAP_BITSTRING(fa->factory.hp, base, 0, 0);
19321932
fa->factory.hp += heap_bits_size(0);
19331933
}

0 commit comments

Comments
 (0)