Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
7d744d1c
Unverified
Commit
7d744d1c
authored
2 years ago
by
boeschf
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix compiler warnings (#2006)
parent
62dbad7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modcc/procinliner.cpp
+1
-1
1 addition, 1 deletion
modcc/procinliner.cpp
test/unit/test_segment_tree.cpp
+14
-12
14 additions, 12 deletions
test/unit/test_segment_tree.cpp
with
15 additions
and
13 deletions
modcc/procinliner.cpp
+
1
−
1
View file @
7d744d1c
...
...
@@ -111,7 +111,7 @@ void ProcedureInliner::visit(BinaryExpression* e) {
void
ProcedureInliner
::
visit
(
AssignmentExpression
*
e
)
{
// If we're inlining a call, take care of variable renaming
if
(
state_
==
state
::
Running
)
{
if
(
auto
lhs
=
e
->
lhs
()
->
is_identifier
())
{
if
(
e
->
lhs
()
->
is_identifier
())
{
e
->
replace_lhs
(
substitute
(
e
->
lhs
(),
local_arg_map_
));
}
if
(
e
->
rhs
()
->
is_identifier
())
{
...
...
This diff is collapsed.
Click to expand it.
test/unit/test_segment_tree.cpp
+
14
−
12
View file @
7d744d1c
...
...
@@ -169,12 +169,13 @@ TEST(segment_tree, split) {
EXPECT_THROW
(
arb
::
split_at
(
t
,
arb
::
mnpos
),
arb
::
arbor_exception
);
EXPECT_THROW
(
arb
::
split_at
(
t
,
1
),
arb
::
arbor_exception
);
}
// gnarly tree
// (npos) - 0 - 1 - 4
// \
// 2 - 3
// \
// 5
/* gnarly tree
** (npos) - 0 - 1 - 4
** \
** 2 - 3
** \
** 5
*/
// NB: Splitting _will_ re-order segments. So we have to be careful when
// building values to compare against.
{
...
...
@@ -275,12 +276,13 @@ TEST(segment_tree, join) {
EXPECT_THROW
(
arb
::
split_at
(
t
,
arb
::
mnpos
),
arb
::
arbor_exception
);
EXPECT_THROW
(
arb
::
split_at
(
t
,
1
),
arb
::
arbor_exception
);
}
// gnarly tree
// (npos) - 0 - 1 - 4
// \
// 2 - 3
// \
// 5
/* gnarly tree
** (npos) - 0 - 1 - 4
** \
** 2 - 3
** \
** 5
*/
// NB: Joining _will_ re-order segments. So we have to be careful when
// building values to compare against.
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment