MP_PACKET_MINIMUN_HETERO_CONVERSION definition changed to use sizeof

rather than hardcoded 4 to be compatible with CPUs with 64-bit ints
This commit is contained in:
Joel Sherrill
1996-09-18 20:49:36 +00:00
parent 533f89f12f
commit 857c52f90e
3 changed files with 6 additions and 3 deletions

View File

@@ -86,7 +86,8 @@ typedef struct {
* may a user message buffer which is not automatically endian swapped.
*/
#define MP_PACKET_MINIMUN_HETERO_CONVERSION ( sizeof( MP_packet_Prefix ) / 4 )
#define MP_PACKET_MINIMUN_HETERO_CONVERSION \
( sizeof( MP_packet_Prefix ) / sizeof( unsigned32 ) )
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/mppkt.inl>

View File

@@ -86,7 +86,8 @@ typedef struct {
* may a user message buffer which is not automatically endian swapped.
*/
#define MP_PACKET_MINIMUN_HETERO_CONVERSION ( sizeof( MP_packet_Prefix ) / 4 )
#define MP_PACKET_MINIMUN_HETERO_CONVERSION \
( sizeof( MP_packet_Prefix ) / sizeof( unsigned32 ) )
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/mppkt.inl>