Skip to content

Commit 4e66025

Browse files
committed
Update BIN and STATMEDIAN
1 parent 2721e2a commit 4e66025

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/blib_func.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,8 @@ void cmd_str1(long funcCode, var_t *arg, var_t *r) {
983983
}
984984

985985
v_createstr(r, p);
986-
986+
free(tb);
987+
987988
break;
988989
case kwHEX:
989990
//

src/common/blib_math.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ var_num_t statmedian(var_num_t *e, int count) {
257257

258258
if (count % 2 == 0) {
259259
return (e[count/2] + e[count/2 - 1]) / 2;
260-
}
261-
else {
260+
} else {
262261
return e[count/2];
263262
}
264263
}

0 commit comments

Comments
 (0)