long int before a variable name
I saw in a code the next statement ROS_INFO("sum %ld ", (long int)service.response.sum );
so I know the variable of the service sum is an int64 but what is the (long int) statement for?????? note : the code is in C++
(long int)
casts int64 type to long int type.and why I want to convert int64 to long int???