Skip to content

Commit

Permalink
Merge pull request #1049 from alainmarcel/alainmarcel-patch-1
Browse files Browse the repository at this point in the history
array_typespec member
  • Loading branch information
alaindargelas committed Oct 31, 2023
2 parents 4955442 + 955d5bc commit 854f267
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- mode:cmake -*-
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)

project(UHDM VERSION 1.76)
project(UHDM VERSION 1.77)

# Detect build type, fallback to release and throw a warning if use didn't
# specify any
Expand Down
10 changes: 6 additions & 4 deletions templates/ExprEval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2568,10 +2568,12 @@ any *ExprEval::hierarchicalSelector(std::vector<std::string> &select_path,
}
tmp->Ranges(tmpR);
return tmp;
} else {
// Must be unpacked struct
return object;
}
}
} else if (const array_typespec *ltps =
any_cast<const array_typespec *>(object)) {
if (const ref_typespec *rt = ltps->Elem_typespec()) {
return (typespec *)rt->Actual_typespec();
}
} else if (constant *c = any_cast<constant *>(object)) {
if (expr *tmp = reduceBitSelect(c, selectIndex, invalidValue, inst, pexpr,
muteError)) {
Expand Down

0 comments on commit 854f267

Please sign in to comment.