SLIM Curve build failure fix

Fix build failure due to C99 loop style:
"for (int i = 0; i < prompt_size; ++i)".