Commit 418ba04c authored by yoogx's avatar yoogx
Browse files

* Adjust functions to support larger message size

        For openaadl/ocarina#99
parent 8c2af7d1
...@@ -99,9 +99,9 @@ int __po_hi_msg_should_swap (__po_hi_msg_t* msg) ...@@ -99,9 +99,9 @@ int __po_hi_msg_should_swap (__po_hi_msg_t* msg)
return 0; return 0;
} }
void __po_hi_msg_swap_value (void* from, void* dest, __po_hi_uint8_t size) void __po_hi_msg_swap_value (void* from, void* dest, __po_hi_uint32_t size)
{ {
__po_hi_uint8_t tmp; __po_hi_uint32_t tmp;
__po_hi_uint8_t* udest; __po_hi_uint8_t* udest;
__po_hi_uint8_t* ufrom; __po_hi_uint8_t* ufrom;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2017 ESA & ISAE.
*/ */
#include <po_hi_config.h> #include <po_hi_config.h>
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
#include <po_hi_returns.h> #include <po_hi_returns.h>
/* Header files in PolyORB-HI */ /* Header files in PolyORB-HI */
#include <types.h> #include <types.h>
/* Header files from generated code */ /* Header files from generated code */
#include <string.h> #include <string.h>
void __po_hi_copy_array (void* dst, void* src, __po_hi_uint16_t size) void __po_hi_copy_array (void* dst, void* src, __po_hi_uint32_t size)
{ {
memcpy (dst, src, size); memcpy (dst, src, size);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment