diff options
author | Alex Word <alex_word86@yahoo.com> | 2010-05-13 00:27:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:27:36 +0200 |
commit | 1242e6c888220c4f1a8101e52133382805108992 (patch) | |
tree | 6a48e5440ba3159863bb79b6432c56946e4b7323 /games/xmoto/patches | |
parent | 2e80d85fb39df1288f713da676bf9c1c22419239 (diff) | |
download | slackbuilds-1242e6c888220c4f1a8101e52133382805108992.tar.gz |
games/xmoto: Updated for version 0.5.2
Diffstat (limited to 'games/xmoto/patches')
-rw-r--r-- | games/xmoto/patches/xmoto-amd64_gcc441.diff | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games/xmoto/patches/xmoto-amd64_gcc441.diff b/games/xmoto/patches/xmoto-amd64_gcc441.diff new file mode 100644 index 0000000000..bc0f47e693 --- /dev/null +++ b/games/xmoto/patches/xmoto-amd64_gcc441.diff @@ -0,0 +1,35 @@ +http://bugs.gentoo.org/284464 + +--- src/DBuffer.h.org 2009-09-10 11:58:28.000000000 +0200 ++++ src/DBuffer.h 2009-09-10 12:07:30.000000000 +0200 +@@ -69,6 +69,8 @@ + void operator >>(unsigned char &c); + void operator <<(unsigned int n); + void operator >>(unsigned int &n); ++ void operator <<(unsigned long n); ++ void operator >>(unsigned long &n); + void operator <<(float n); + void operator >>(float &n); + void operator <<(std::string s); + +--- src/DBuffer.cpp.org 2009-09-10 11:58:38.000000000 +0200 ++++ src/DBuffer.cpp 2009-09-10 12:08:18.000000000 +0200 +@@ -210,6 +210,18 @@ + n = (unsigned int) sn; + } + ++ void DBuffer::operator <<(unsigned long n) { ++ int sn; ++ sn = (int) (n); ++ *this << sn; ++ } ++ ++ void DBuffer::operator >>(unsigned long &n) { ++ int sn; ++ *this >> sn; ++ n = (unsigned long) sn; ++ } ++ + void DBuffer::operator <<(float n) { + writeBuf_LE((char *)&n, sizeof(float)); + } |