From 6755c73a5843357f7db82958ee636b4a0a6c4e15 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 2 Mar 2024 03:40:50 +0800 Subject: [PATCH] some fix --- include/pocketpy/vm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/vm.h b/include/pocketpy/vm.h index 8a1f32c9..0b6b89c4 100644 --- a/include/pocketpy/vm.h +++ b/include/pocketpy/vm.h @@ -465,7 +465,7 @@ constexpr std::pair _const_cxx_typeid_map[] = { template constexpr Type _find_type_in_const_cxx_typeid_map(){ - for(auto& p : _const_cxx_typeid_map) if(p.first == &typeid(T)) return p.second; + for(auto [id, type] : _const_cxx_typeid_map) if(id == &typeid(T)) return type; return -1; }