check_overflow: fix assigning arrays to pointers of different type