From b49b501e267f96747554f321196275b4f81ae5f9 Mon Sep 17 00:00:00 2001 From: hongruichen Date: Wed, 10 Jul 2024 19:48:57 +0800 Subject: [PATCH] fix sprintf type --- ggml/src/ggml-qnn/tensor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-qnn/tensor.hpp b/ggml/src/ggml-qnn/tensor.hpp index 8a825b57d..e6bb63c54 100644 --- a/ggml/src/ggml-qnn/tensor.hpp +++ b/ggml/src/ggml-qnn/tensor.hpp @@ -33,7 +33,7 @@ public: if (_tensor_name.empty()) { static std::atomic_uint32_t unnamed_tensor_count = 0; char buffer[GGML_MAX_NAME] = {}; - snprintf(buffer, sizeof(buffer), "unnamed_%p", unnamed_tensor_count++); + snprintf(buffer, sizeof(buffer), "unnamed_%d", (int)(unnamed_tensor_count++)); _tensor_name = buffer; }