From 938ed243a9b4f11f3ac7abfacf2f0974ca554a75 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 29 Oct 2024 19:11:50 +0100 Subject: [PATCH] Fixed warning --- src/AddressTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddressTree.cpp b/src/AddressTree.cpp index 9838e4af116c..707413ca8859 100644 --- a/src/AddressTree.cpp +++ b/src/AddressTree.cpp @@ -467,7 +467,7 @@ void AddressTree::getAddresses(lua_State *vm) { snprintf(key, sizeof(key), "%02X:%02X:%02X:%02X:%02X:%02X", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); - snprintf(val, sizeof(val), "%ld", it->second); + snprintf(val, sizeof(val), "%llu", it->second); lua_push_str_table_entry(vm, key, val); }