Skip to content

Commit

Permalink
rt: Fix child-iteration bug in crate map.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jul 22, 2013
1 parent 9ed82fb commit bc2b78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rt/rust_crate_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class cratemap {
return &reinterpret_cast<const cratemap_v0 *>(this)->
m_children[0];
case 1:
return &m_children[1];
return &m_children[0];
default: assert(false && "Unknown crate map version!");
return NULL; // Appease -Werror=return-type
}
Expand Down

0 comments on commit bc2b78c

Please sign in to comment.