diff --git a/vhdlpp/vtype.cc b/vhdlpp/vtype.cc index 730eb00a9..58e7e9a16 100644 --- a/vhdlpp/vtype.cc +++ b/vhdlpp/vtype.cc @@ -265,8 +265,8 @@ void VTypeArray::evaluate_ranges(ScopeBase*scope) { } } -VTypeRange::VTypeRange(const VType*base, int64_t end_val, int64_t start_val) -: base_(base), end_(end_val), start_(start_val) +VTypeRange::VTypeRange(const VType*base, int64_t start_val, int64_t end_val) +: base_(base), start_(start_val), end_(end_val) { } diff --git a/vhdlpp/vtype.h b/vhdlpp/vtype.h index bf4968b14..617bd72c4 100644 --- a/vhdlpp/vtype.h +++ b/vhdlpp/vtype.h @@ -283,7 +283,7 @@ class VTypeRange : public VType { private: const VType*base_; - int64_t end_, start_; + int64_t start_, end_; }; class VTypeEnum : public VType {