rosserial for Hydro
Fork of rosserial_mbed_lib by
Diff: std_msgs/Int8.h
- Revision:
- 1:ff0ec969dad1
- Parent:
- 0:77afd7560544
- Child:
- 3:1cf99502f396
diff -r 77afd7560544 -r ff0ec969dad1 std_msgs/Int8.h --- a/std_msgs/Int8.h Fri Aug 19 09:06:30 2011 +0000 +++ b/std_msgs/Int8.h Sun Oct 16 07:19:36 2011 +0000 @@ -12,14 +12,14 @@ class Int8 : public ros::Msg { public: - signed char data; + int8_t data; virtual int serialize(unsigned char *outbuffer) { int offset = 0; union { - signed char real; - unsigned char base; + int8_t real; + uint8_t base; } u_data; u_data.real = this->data; *(outbuffer + offset + 0) = (u_data.base >> (8 * 0)) & 0xFF; @@ -31,8 +31,8 @@ { int offset = 0; union { - signed char real; - unsigned char base; + int8_t real; + uint8_t base; } u_data; u_data.base = 0; u_data.base |= ((typeof(u_data.base)) (*(inbuffer + offset + 0))) << (8 * 0);