switched to cstdint types