modify for Hydro version
Fork of rosserial_mbed_lib by
Diff: std_msgs/Duration.h
- Revision:
- 1:ff0ec969dad1
- Parent:
- 0:77afd7560544
- Child:
- 3:1cf99502f396
--- a/std_msgs/Duration.h Fri Aug 19 09:06:30 2011 +0000 +++ b/std_msgs/Duration.h Sun Oct 16 07:19:36 2011 +0000 @@ -19,8 +19,8 @@ { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_sec; u_sec.real = this->data.sec; *(outbuffer + offset + 0) = (u_sec.base >> (8 * 0)) & 0xFF; @@ -29,8 +29,8 @@ *(outbuffer + offset + 3) = (u_sec.base >> (8 * 3)) & 0xFF; offset += sizeof(this->data.sec); union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_nsec; u_nsec.real = this->data.nsec; *(outbuffer + offset + 0) = (u_nsec.base >> (8 * 0)) & 0xFF; @@ -45,8 +45,8 @@ { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_sec; u_sec.base = 0; u_sec.base |= ((typeof(u_sec.base)) (*(inbuffer + offset + 0))) << (8 * 0); @@ -56,8 +56,8 @@ this->data.sec = u_sec.real; offset += sizeof(this->data.sec); union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_nsec; u_nsec.base = 0; u_nsec.base |= ((typeof(u_nsec.base)) (*(inbuffer + offset + 0))) << (8 * 0);