From 16df123927ac8493578d24eb7aa8536401186c7a Mon Sep 17 00:00:00 2001 From: Jason Valenzuela Date: Wed, 25 Mar 2020 21:59:57 -0400 Subject: [PATCH] Change NotifyAssemblyConnectedDataReceived length parameter to size_t. Resolves Visual Studio warnings about converting integer values to 16-bit. --- source/src/cip/cipassembly.c | 2 +- source/src/cip/cipassembly.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/cip/cipassembly.c b/source/src/cip/cipassembly.c index 2709761ec..ef015ec84 100644 --- a/source/src/cip/cipassembly.c +++ b/source/src/cip/cipassembly.c @@ -136,7 +136,7 @@ CipInstance *CreateAssemblyObject(const CipInstanceNum instance_id, EipStatus NotifyAssemblyConnectedDataReceived(CipInstance *const instance, const EipUint8 *const data, - const EipUint16 data_length) { + const size_t data_length) { /* empty path (path size = 0) need to be checked and taken care of in future */ /* copy received data to Attribute 3 */ const CipByteArray *const assembly_byte_array = diff --git a/source/src/cip/cipassembly.h b/source/src/cip/cipassembly.h index 8fb1c0cea..aebc21854 100644 --- a/source/src/cip/cipassembly.h +++ b/source/src/cip/cipassembly.h @@ -56,6 +56,6 @@ void ShutdownAssemblies(void); */ EipStatus NotifyAssemblyConnectedDataReceived(CipInstance *const instance, const EipUint8 *const data, - const EipUint16 data_length); + const size_t data_length); #endif /* OPENER_CIPASSEMBLY_H_ */