aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-06-07 06:15:07 +0000
committerMike Buland <eichlan@xagasoft.com>2008-06-07 06:15:07 +0000
commit3ac57795fe8e28915523de6dd95e336a3eaa8064 (patch)
tree5e06f65c451bdef412968c6631bcccfe2b15b2a3 /src/unit
parent555ba77568b6faf18ebaed06cd08615deab2d8e3 (diff)
downloadlibbu++-3ac57795fe8e28915523de6dd95e336a3eaa8064.tar.gz
libbu++-3ac57795fe8e28915523de6dd95e336a3eaa8064.tar.bz2
libbu++-3ac57795fe8e28915523de6dd95e336a3eaa8064.tar.xz
libbu++-3ac57795fe8e28915523de6dd95e336a3eaa8064.zip
This seems to have done the trick, on the 32 bit platform, anyway. Turns out
it's a bad idea to rely on the intNN_t typedefs. I enumerated all non-pointer primitives in c++ (except void, you can't store things in a void), and it works great. I also discovered C and C++ actually have unsigned char, signed char, and char, which are all distinct types. It supports all three now. In addition, I got rid of all of the specific && operators, the general one covers it all. Also, the unit tests all pass for now. Now to try it on the 64bit system.
Diffstat (limited to '')
-rw-r--r--src/unit/archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit/archive.cpp b/src/unit/archive.cpp
index 61e3567..531ece1 100644
--- a/src/unit/archive.cpp
+++ b/src/unit/archive.cpp
@@ -57,7 +57,7 @@ public:
57 uint32_t p6; 57 uint32_t p6;
58 int64_t p7; 58 int64_t p7;
59 uint64_t p8; 59 uint64_t p8;
60 signed char p9; 60 char p9;
61 unsigned char p10; 61 unsigned char p10;
62 short p11; 62 short p11;
63 unsigned short p12; 63 unsigned short p12;