fix -pedantic compiler warning