From 96a0a84e6cd542733a8322b7efc63d97449e5c5d Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 4 Dec 2015 10:29:08 +0100 Subject: [PATCH] vhdlpp: Fixed the range boundaries order. --- vhdlpp/vtype.cc | 4 ++-- vhdlpp/vtype.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {