Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: V1.3.0.0
-
Fix Version/s: V1.4.0.0
-
Component/s: Toolkit Source
-
Labels:None
-
Account:SDO Transport, Diagnostic (SDOTRANSPO)
Description
Removing the compiler flag (-m32) may break the communication on 64-bit systems.
The netxtransport error definitions (see netXTransport_Errors.h) misses the cast to an int32_t. Otherwise simple comparison will fail.
Workaround:
Add int32_t cast for every error definition.
e.g. change
#define NXT_NO_ERROR (0x00000000L)
to
#define NXT_NO_ERROR (int32_t)(0x00000000L)