Skip to content

Commit

Permalink
Change NotifyAssemblyConnectedDataReceived length parameter to size_t.
Browse files Browse the repository at this point in the history
Resolves Visual Studio warnings about converting integer values to
16-bit.
  • Loading branch information
jvalenzuela authored and MartinMelikMerkumians committed Apr 18, 2024
1 parent 6862b8c commit 16df123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/src/cip/cipassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion source/src/cip/cipassembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 16df123

Please sign in to comment.