We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287398b commit 5eb72edCopy full SHA for 5eb72ed
src/core/b-init.c
@@ -390,7 +390,7 @@ extern const REBYTE Str_Banner[];
390
val = Append_Frame(Lib_Context, word, 0);
391
// Find the related function:
392
func = Find_Word_Value(Lib_Context, VAL_WORD_SYM(word+1));
393
- if (!func) Crash(9912);
+ if (!func) { Crash(9912); return; }
394
*val = *func;
395
VAL_SET(val, REB_OP);
396
VAL_SET_EXT(val, VAL_TYPE(func));
src/core/f-stubs.c
@@ -777,8 +777,10 @@
777
val = aval;
778
else if (bval && VAL_TYPE(bval) == VAL_TYPE(lval) && VAL_SERIES(bval) == VAL_SERIES(lval))
779
val = bval;
780
- else
+ else {
781
Trap1(RE_INVALID_PART, lval);
782
+ return 0; // silent compiler's warning
783
+ }
784
785
len = (REBINT)VAL_INDEX(lval) - (REBINT)VAL_INDEX(val);
786
}
0 commit comments