limit vector.size() in a for loop
<p>I'm trying to do this in a vector composed of Vec3f:</p>

<pre><code>for (size_t i = 0; i &lt; (mPoints.size() - 10) ; i++) {
    glVertex3f(mPoints[i]);
}
</code></pre>

<p>But I always get a run time error EXC_BAD_ACCESS ... if instead of size() I use an int I get the same error. If instead I simply use size() without the substraction, it works fine...</p>

<p>What's going on?</p>
