I think that's a bit different to the original version, which breaks out the loop as soon as "aq_vec" evaluates to false.
So, instead of
if (aq_vec) { ... }
Should be
if (!aq_vec) break;
I think that's a bit different to the original version, which breaks out the loop as soon as "aq_vec" evaluates to false.
So, instead of
if (aq_vec) {
...
}
Should be
if (!aq_vec)
break;