From b191139f2a299da4a036beb416d2637dd01195e6 Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Wed, 22 Apr 2020 20:41:24 +0200 Subject: [PATCH] Fix undefined behavior with nullptr --- libsolidity/formal/Z3Interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/formal/Z3Interface.cpp b/libsolidity/formal/Z3Interface.cpp index f175e45d2..a84f39bb1 100644 --- a/libsolidity/formal/Z3Interface.cpp +++ b/libsolidity/formal/Z3Interface.cpp @@ -237,8 +237,8 @@ z3::sort Z3Interface::z3Sort(Sort const& _sort) z3::func_decl tupleConstructor = m_context.tuple_sort( tupleSort.name.c_str(), tupleSort.members.size(), - &cMembers[0], - &sorts[0], + cMembers.data(), + sorts.data(), projs ); return tupleConstructor.range();