Skip to content

Commit

Permalink
Making reference node "0" as default
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielseibel1 committed Apr 10, 2018
1 parent 9d78ae3 commit 8dfe9dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ int next_node_int() {

int node_to_int(data_t* node) {

if (node_map.empty()) node_map.insert(std::make_pair("0", 0));

std::string node_as_string;

if (node->type == CELL_DATA_TYPE_STRING) {
Expand Down

0 comments on commit 8dfe9dd

Please sign in to comment.