]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
hexagon: fix hmx-queue signal enum-narrowing problem (#25677)
authorChyan <redacted>
Tue, 14 Jul 2026 19:27:09 +0000 (03:27 +0800)
committerGitHub <redacted>
Tue, 14 Jul 2026 19:27:09 +0000 (12:27 -0700)
ggml/src/ggml-hexagon/htp/hmx-queue.c

index 5f6a5e206bb93de94d56037b88e83233cf7441fe..3add542bae7ce3493a1aa637f423e789440a3d1e 100644 (file)
@@ -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;