From c217d7d759662e56e73f090f3f573d0cf6f542ff Mon Sep 17 00:00:00 2001 From: Purdea Andrei Date: Wed, 3 Jun 2020 15:55:21 +0300 Subject: [PATCH] fix compilation issues on older gcc5 --- main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cc b/main.cc index be18554fc..b4f2a2a3e 100644 --- a/main.cc +++ b/main.cc @@ -598,7 +598,7 @@ bool had_timescale = false; static void read_iconfig_file(const char*ipath) { char buf[8*1024]; - vector> to_build_library_index; + vector > to_build_library_index; FILE*ifile = fopen(ipath, "r"); if (ifile == 0) { @@ -799,10 +799,10 @@ static void read_iconfig_file(const char*ipath) } } fclose(ifile); - for (vector>::iterator it = to_build_library_index.begin() ; + for (vector >::iterator it = to_build_library_index.begin() ; it != to_build_library_index.end() ; ++ it ) { - build_library_index(get<0>(*it), get<1>(*it)); - free(get<0>(*it)); + build_library_index(it->first, it->second); + free(it->first); } }