- atom->arg_ptr[0] = (uint64_t)arg0;
- atom->arg_ptr[1] = (uint64_t)arg1;
- atom->arg_ptr[2] = (uint64_t)arg2;
- atom->arg_ptr[3] = (uint64_t)arg3;
+ atom->arg_ptr[0] = (uint64_t) (unsigned long) arg0;
+ atom->arg_ptr[1] = (uint64_t) (unsigned long) arg1;
+ atom->arg_ptr[2] = (uint64_t) (unsigned long) arg2;
+ atom->arg_ptr[3] = (uint64_t) (unsigned long) arg3;