<div dir="ltr"><div class="gmail_extra">On Sat, Apr 6, 2013 at 12:44 AM, James Stroud <span dir="ltr">&lt;<a href="mailto:xtald00d@gmail.com" target="_blank">xtald00d@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I accidentally gave paired_miller_indices() a value &gt; 1 for i_array, and got a segfault. The problem looks to be in match_indices.cpp, line 94:</div>

<div><br></div><div><font face="Monaco">� � � result.push_back(miller_indices_[i_array][pairs_[i][i_array]]);</font></div><div><br></div><div>Maybe there should be a test that raises an exception on the python side, if possible.</div>

</div></blockquote><div><br></div><div style>The way this is usually handled is to add an assertion that i_array &lt;= 1. �I&#39;m a little surprised this wasn&#39;t already in there, but I&#39;ve committed the change.</div>

<div style><br></div><div style>thanks,</div><div style>Nat</div></div></div></div>