From: Chyan Date: Tue, 14 Jul 2026 19:27:09 +0000 (+0800) Subject: hexagon: fix hmx-queue signal enum-narrowing problem (#25677) X-Git-Tag: upstream/0.0.10438~426 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c71854292f7c367cc3b35939f88121d81945472f;p=pkg%2Fggml%2Fsources%2Fllama.cpp hexagon: fix hmx-queue signal enum-narrowing problem (#25677) --- diff --git a/ggml/src/ggml-hexagon/htp/hmx-queue.c b/ggml/src/ggml-hexagon/htp/hmx-queue.c index 5f6a5e206..3add542ba 100644 --- a/ggml/src/ggml-hexagon/htp/hmx-queue.c +++ b/ggml/src/ggml-hexagon/htp/hmx-queue.c @@ -38,7 +38,7 @@ static inline void hmx_queue_process(struct hmx_queue *q, bool* killed) { if (!d->done) { FARF(HIGH, "hmx-queue-process: ir %u func %p data %p", ir, d->func, d->data); - enum hmx_queue_signal sig = (enum hmx_queue_signal) (unsigned int) d->func; + uintptr_t sig = (uintptr_t) d->func; switch (sig) { case HMX_QUEUE_NOOP: /* noop */; break; case HMX_QUEUE_KILL: *killed = true; break;