From 1dedcfd50d4b0f8a4c997ee0a6e6a3c3adf3c9f7 Mon Sep 17 00:00:00 2001 From: Jan Wassenberg Date: Thu, 19 Mar 2026 10:10:57 -0700 Subject: [PATCH] Warning fix: cast enum for HWY_ABORT %d PiperOrigin-RevId: 886242788 --- gemma/tiled_attention.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gemma/tiled_attention.cc b/gemma/tiled_attention.cc index cd8eaa1c..d691a3a1 100644 --- a/gemma/tiled_attention.cc +++ b/gemma/tiled_attention.cc @@ -720,8 +720,9 @@ void TiledAttention(AttentionImpl attention_impl, size_t num_tokens, attention_impl, activations, qbatch, flags, env); } else { - HWY_ABORT("Unsupported KV cache type: %d", - qbatch.KV(0).cache->compact_kv_cache_ptr.GetType()); + HWY_ABORT( + "Unsupported KV cache type: %d", + static_cast(qbatch.KV(0).cache->compact_kv_cache_ptr.GetType())); } RMSNormAndPositionalEncoding(num_tokens, qbatch, activations.q, layer.query_norm_scale, layer_idx, activations,