From 3ac57795fe8e28915523de6dd95e336a3eaa8064 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 7 Jun 2008 06:15:07 +0000 Subject: 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. --- src/unit/archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unit') 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: uint32_t p6; int64_t p7; uint64_t p8; - signed char p9; + char p9; unsigned char p10; short p11; unsigned short p12; -- cgit v1.2.3