Skip to content

Commit b67100b

Browse files
committed
Replace assert(0) with rb_bug
1 parent e4eb819 commit b67100b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/yajl/yajl_ext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static VALUE rb_yajl_projector_build_simple_value(yajl_event_stream_t parser, ya
921921
rb_raise(cParseError, "unexpected colon while constructing value");
922922

923923
default:;
924-
assert(0);
924+
rb_bug("we should never get here");
925925
}
926926
}
927927

@@ -959,7 +959,7 @@ static VALUE rb_yajl_projector_build_string(yajl_event_stream_t parser, yajl_eve
959959
}
960960

961961
default:; {
962-
assert(0);
962+
rb_bug("we should never get here");
963963
}
964964
}
965965
}

0 commit comments

Comments
 (0)