fix a c99 warning