FreeBSD Bugzilla – Attachment 45931 Details for
Bug 70664
[maintainer update] games/netpanzer: fix build with gcc 3.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.69 KB, created by
Guido Falsi
on 2004-08-19 16:30:14 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2004-08-19 16:30:14 UTC
Size:
2.69 KB
patch
obsolete
>diff -ruN netpanzer.old/files/patch-src-Lib-ArrayUtil-LinkListDoubleTemplate.hpp netpanzer/files/patch-src-Lib-ArrayUtil-LinkListDoubleTemplate.hpp >--- netpanzer.old/files/patch-src-Lib-ArrayUtil-LinkListDoubleTemplate.hpp Thu Jan 1 01:00:00 1970 >+++ netpanzer/files/patch-src-Lib-ArrayUtil-LinkListDoubleTemplate.hpp Thu Aug 19 16:40:48 2004 >@@ -0,0 +1,11 @@ >+--- src/Lib/ArrayUtil/LinkListDoubleTemplate.hpp.orig Tue Dec 2 12:40:14 2003 >++++ src/Lib/ArrayUtil/LinkListDoubleTemplate.hpp Thu Aug 19 16:34:25 2004 >+@@ -203,7 +203,7 @@ >+ object->prev->next = before; >+ } >+ >+- if(delete_ptr == front) { >++ if(object == front) { >+ front = before; >+ } >+ >diff -ruN netpanzer.old/files/patch-src-Lib-ArrayUtil-QueueTemplate.hpp netpanzer/files/patch-src-Lib-ArrayUtil-QueueTemplate.hpp >--- netpanzer.old/files/patch-src-Lib-ArrayUtil-QueueTemplate.hpp Thu Jan 1 01:00:00 1970 >+++ netpanzer/files/patch-src-Lib-ArrayUtil-QueueTemplate.hpp Thu Aug 19 17:06:03 2004 >@@ -0,0 +1,66 @@ >+--- src/Lib/ArrayUtil/QueueTemplate.hpp.orig Sun Dec 21 01:48:03 2003 >++++ src/Lib/ArrayUtil/QueueTemplate.hpp Thu Aug 19 16:34:31 2004 >+@@ -42,8 +42,8 @@ >+ >+ bool enqueue(const TYPE& object ) >+ { >+- add( object, (rear + 1) % size ); >+- rear = (rear + 1) % size; >++ add( object, (rear + 1) % this->size ); >++ rear = (rear + 1) % this->size; >+ >+ if ( front == rear ) >+ return( false ); >+@@ -55,29 +55,29 @@ >+ { >+ assert( front != rear ); >+ >+- front = ( front + 1 ) % size; >+- return( array[ front ] ); >++ front = ( front + 1 ) % this->size; >++ return( this->array[ front ] ); >+ } >+ >+ void pop() >+ { >+ assert( front != rear ); >+ >+- front = ( front + 1 ) % size; >++ front = ( front + 1 ) % this->size; >+ } >+ >+ TYPE getFirst() >+ { >+ assert( front != rear ); >+ >+- return( array[ (( front + 1 ) % size) ] ); >++ return( this->array[ (( front + 1 ) % this->size) ] ); >+ } >+ >+ TYPE * getFirstPtr() >+ { >+ assert( front != rear ); >+ >+- return( &(array[ (( front + 1 ) % size) ]) ); >++ return( &(this->array[ (( front + 1 ) % this->size) ]) ); >+ } >+ >+ >+@@ -88,7 +88,7 @@ >+ >+ bool isFull () const >+ { >+- return front == (rear + 1) % size; >++ return front == (rear + 1) % this->size; >+ } >+ >+ bool isReady() const >+@@ -99,7 +99,7 @@ >+ unsigned long itemCount() const >+ { >+ if ( front > rear ) >+- return ( (rear+1) + ( (size-1) - front ) ); >++ return ( (rear+1) + ( (this->size-1) - front ) ); >+ else >+ return ( rear - front ); >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70664
: 45931