diff options
author | Sakala Venkata Krishna Rohit <rohitsakala@gmail.com> | 2018-08-27 16:16:09 +0530 |
---|---|---|
committer | Sakala Venkata Krishna Rohit <rohitsakala@gmail.com> | 2018-08-27 16:25:34 +0530 |
commit | 898f640e65879c793af392479b97dfcfb4fa2f53 (patch) | |
tree | 6657940e0605fcd4277bbe41dc5e900909bd5d98 /upb/pb/glue.c | |
parent | 38d674e86f4d5b368e37e20d31a44c2924de6998 (diff) |
Bugfix on bigendianess by casting size_t to unint32_t
The reason for typecasting size_t to unint32_t is that size_t is 8 bytes and uint32_t is only 4 bytes.
If not typecasted Memcpy fails to copy the *correct* four bytes in big endian platforms.
Diffstat (limited to 'upb/pb/glue.c')
0 files changed, 0 insertions, 0 deletions