Skip to content

Commit 9b8a31a

Browse files
authored
remove constexpr that fails on certain compilers
1 parent 25963a8 commit 9b8a31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/binary-ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void binary_op(const ggml_compute_params * params, ggml_tensor * dst) {
149149

150150
/* */ if (!src0 || !src1) { // scalar
151151
if (dst->type == GGML_TYPE_I32) {
152-
if constexpr (op == op_div) {
152+
if (op == op_div) {
153153
apply_scalar_div_op(params, dst);
154154
} else {
155155
GGML_ABORT("%s: unsupported op\n", __func__);

0 commit comments

Comments
 (0)