diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-06-07 07:00:09 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-06-07 07:00:09 +0000 |
commit | a153962ffe93e70f2419efeab904b515c99c2eda (patch) | |
tree | a41cb06283025598fcecead56daaf2cfc4a3f6fe /src/list.h | |
parent | 3ac57795fe8e28915523de6dd95e336a3eaa8064 (diff) | |
download | libbu++-a153962ffe93e70f2419efeab904b515c99c2eda.tar.gz libbu++-a153962ffe93e70f2419efeab904b515c99c2eda.tar.bz2 libbu++-a153962ffe93e70f2419efeab904b515c99c2eda.tar.xz libbu++-a153962ffe93e70f2419efeab904b515c99c2eda.zip |
Fixed the bugs in the archive system. Both the List container and FString had
inconsistancies when archiving compared to their STL counterparts, they are now
compatible on every system I can imagine. Also, List now uses a long instead
of an int for sizing, and the other containers should as well. I'll check on
that later.
That means that the files will all be larger on a 64 bit system, but such is
life. The same thing happens when you use STL classes. There may be other
inconsistancies down the road, we'll see.
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -535,7 +535,7 @@ namespace Bu | |||
535 | * Get the current size of the list. | 535 | * Get the current size of the list. |
536 | *@returns (int) The current size of the list. | 536 | *@returns (int) The current size of the list. |
537 | */ | 537 | */ |
538 | int getSize() const | 538 | long getSize() const |
539 | { | 539 | { |
540 | return nSize; | 540 | return nSize; |
541 | } | 541 | } |
@@ -586,7 +586,7 @@ namespace Bu | |||
586 | Link *pLast; | 586 | Link *pLast; |
587 | linkalloc la; | 587 | linkalloc la; |
588 | valuealloc va; | 588 | valuealloc va; |
589 | int nSize; | 589 | long nSize; |
590 | cmpfunc cmp; | 590 | cmpfunc cmp; |
591 | }; | 591 | }; |
592 | } | 592 | } |