Skip to content

Commit c718542

Browse files
authored
hexagon: fix hmx-queue signal enum-narrowing problem (ggml-org#25677)
1 parent bf2c86d commit c718542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ggml/src/ggml-hexagon/htp/hmx-queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static inline void hmx_queue_process(struct hmx_queue *q, bool* killed) {
3838
if (!d->done) {
3939
FARF(HIGH, "hmx-queue-process: ir %u func %p data %p", ir, d->func, d->data);
4040

41-
enum hmx_queue_signal sig = (enum hmx_queue_signal) (unsigned int) d->func;
41+
uintptr_t sig = (uintptr_t) d->func;
4242
switch (sig) {
4343
case HMX_QUEUE_NOOP: /* noop */; break;
4444
case HMX_QUEUE_KILL: *killed = true; break;

0 commit comments

Comments
 (0)