Skip to content

Commit

Permalink
Bug fix Function variable overlap check.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterS committed Dec 30, 2013
1 parent 097af40 commit 578a21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ std::pair<typename Map::const_iterator,
if (output.first->first >= t) {
output.first = map.end();
}
if (output.second->first <= t) {
if (output.second != map.end() && output.second->first <= t) {
output.second = map.end();
}
return output;
Expand Down

0 comments on commit 578a21e

Please sign in to comment.