From 8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4 Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 6 Oct 2006 19:15:16 +0000 Subject: - Fix build with gcc41 PR: ports/104001 Submitted by: trasz --- palm/pose/files/patch-SrcShared-EmPalmStructs.h | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 palm/pose/files/patch-SrcShared-EmPalmStructs.h (limited to 'palm/pose/files') diff --git a/palm/pose/files/patch-SrcShared-EmPalmStructs.h b/palm/pose/files/patch-SrcShared-EmPalmStructs.h new file mode 100644 index 000000000000..e811aba92cd2 --- /dev/null +++ b/palm/pose/files/patch-SrcShared-EmPalmStructs.h @@ -0,0 +1,28 @@ +--- ../SrcShared/EmPalmStructs.h.orig Thu Oct 5 15:19:20 2006 ++++ ../SrcShared/EmPalmStructs.h Thu Oct 5 15:19:43 2006 +@@ -577,9 +577,9 @@ + template \ + INLINE_ EmAlias##type& EmAlias##type::operator= (rhs_type val) \ + { \ +- if (sizeof (asType) == 1) A::PutByte (this->GetPtr (), (unsigned char) (asType) val); \ +- else if (sizeof (asType) == 2) A::PutWord (this->GetPtr (), (unsigned short) (asType) val); \ +- else if (sizeof (asType) == 4) A::PutLong (this->GetPtr (), (unsigned long) (asType) val); \ ++ if (sizeof (asType) == 1) A::PutByte (this->GetPtr (), (unsigned char) (asType) (long) val); \ ++ else if (sizeof (asType) == 2) A::PutWord (this->GetPtr (), (unsigned short) (asType) (long) val); \ ++ else if (sizeof (asType) == 4) A::PutLong (this->GetPtr (), (unsigned long) (asType) (long) val); \ + else BadSetter (); \ + \ + return *this; \ +@@ -589,9 +589,9 @@ + \ + INLINE_ EmProxy##type& EmProxy##type::operator= (rhs_type val) \ + { \ +- if (sizeof (asType) == 1) LAS::PutByte (this->GetPtr (), (unsigned char) (asType) val); \ +- else if (sizeof (asType) == 2) LAS::PutWord (this->GetPtr (), (unsigned short) (asType) val); \ +- else if (sizeof (asType) == 4) LAS::PutLong (this->GetPtr (), (unsigned long) (asType) val); \ ++ if (sizeof (asType) == 1) LAS::PutByte (this->GetPtr (), (unsigned char) (asType) (long) val); \ ++ else if (sizeof (asType) == 2) LAS::PutWord (this->GetPtr (), (unsigned short) (asType) (long) val); \ ++ else if (sizeof (asType) == 4) LAS::PutLong (this->GetPtr (), (unsigned long) (asType) (long) val); \ + else BadSetter (); \ + \ + return *this; \ -- cgit