diff --git a/pform.cc b/pform.cc index 9230cd42b..c50fb7314 100644 --- a/pform.cc +++ b/pform.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2024 Stephen Williams (steve@icarus.com) + * Copyright (c) 1998-2025 Stephen Williams (steve@icarus.com) * Copyright CERN 2013 / Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it @@ -1482,7 +1482,7 @@ void pform_endmodule(const char*name, bool inside_celldefine, void pform_genvars(const struct vlltype&li, list*names) { list::const_iterator cur; - for (cur = names->begin(); cur != names->end() ; *cur++) { + for (cur = names->begin(); cur != names->end() ; ++cur) { PGenvar*genvar = new PGenvar(); FILE_NAME(genvar, li); diff --git a/tgt-vhdl/state.cc b/tgt-vhdl/state.cc index 77493b1c6..102f16665 100644 --- a/tgt-vhdl/state.cc +++ b/tgt-vhdl/state.cc @@ -1,7 +1,7 @@ /* * Managing global state for the VHDL code generator. * - * Copyright (C) 2009 Nick Gasson (nick@nickg.me.uk) + * Copyright (C) 2009-2025 Nick Gasson (nick@nickg.me.uk) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -256,7 +256,7 @@ static bool same_scope_type_name(ivl_scope_t a, ivl_scope_t b) if (nparams_a != nparams_b) return false; - for (unsigned i = 0; i < nparams_a; i++) { + for (unsigned i = 0; i < nparams_a; ++i) { ivl_parameter_t param_a = ivl_scope_param(a, i); ivl_parameter_t param_b = ivl_scope_param(b, i); @@ -304,7 +304,7 @@ static bool same_scope_type_name(ivl_scope_t a, ivl_scope_t b) */ bool seen_this_scope_type(ivl_scope_t s) { - for (auto cur = g_default_scopes.begin() ; cur != g_default_scopes.end() ; cur++) { + for (auto cur = g_default_scopes.begin() ; cur != g_default_scopes.end() ; ++cur) { if (same_scope_type_name(s, *cur)) return true; }