Upate libreg/src/conv.c to workaround gcc error on MacOS