aboutsummaryrefslogtreecommitdiffstats
path: root/palm/pose/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-10-07 03:15:16 +0800
committermiwi <miwi@FreeBSD.org>2006-10-07 03:15:16 +0800
commit8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4 (patch)
treeed8ece43a6d05a9f6cf99174d6a0cb17bcfc435a /palm/pose/files
parent1980dc43b57a948516ecff19622847e39e4f3d67 (diff)
downloadfreebsd-ports-gnome-8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4.tar.gz
freebsd-ports-gnome-8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4.tar.zst
freebsd-ports-gnome-8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4.zip
- Fix build with gcc41
PR: ports/104001 Submitted by: trasz <trasz@pin.if.uz.zgora.pl>
Diffstat (limited to 'palm/pose/files')
-rw-r--r--palm/pose/files/patch-SrcShared-EmPalmStructs.h28
1 files changed, 28 insertions, 0 deletions
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 <class A> \
+ INLINE_ EmAlias##type<A>& EmAlias##type<A>::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; \