src/pdo.c
changeset 315 1d3bf87b8658
parent 298 dba062c5c3c1
child 320 f82e758840bd
--- a/src/pdo.c	Mon Nov 12 14:38:34 2007 +0100
+++ b/src/pdo.c	Mon Nov 12 15:17:49 2007 +0100
@@ -521,7 +521,12 @@
 	/*Compare new and old PDO*/
 	if(d->PDO_status[pdoNum].last_message.cob_id.w == pdo.cob_id.w &&
 	   d->PDO_status[pdoNum].last_message.len == pdo.len &&
+#ifdef UNS64
 	   *(UNS64*)(&d->PDO_status[pdoNum].last_message.data[0]) == *(UNS64*)(&pdo.data[0])){
+#else /* don't ALLOW_64BIT_OPS*/
+       *(UNS32*)(&d->PDO_status[pdoNum].last_message.data[0]) == *(UNS32*)(&pdo.data[0]) &&
+       *(UNS32*)(&d->PDO_status[pdoNum].last_message.data[4]) == *(UNS32*)(&pdo.data[4])){
+#endif 
 	   	/* No changes -> go to next pdo*/
 		status = state11;
 	}else{