The type of st_rdev changes depending on the arch, on i386 is int, on others long unsigned. Considering the context I prefer to believe it wont overflow instead of adding complex conditionals.