Package: aleph
Followup-For: Bug #276735

The following patch fixes the compilation problems with g++-3.4.



--- src/std/lib/Cons.cpp.orig   2005-06-17 18:59:13.000000000 -0700
+++ src/std/lib/Cons.cpp        2005-06-17 18:59:18.000000000 -0700
@@ -153,7 +153,7 @@
     }
     // try to serialize the car
     if (p_car == nilp) {
-      os.write (Serial::SERIAL_NILP_ID);
+      os.write ((char) Serial::SERIAL_NILP_ID);
     } else {
       Serial* sobj = dynamic_cast <Serial*> (p_car);
       if (sobj == nilp) {
@@ -165,7 +165,7 @@
     }
     // try to serialize the cdr
     if (p_cdr == nilp) {
-      os.write (Serial::SERIAL_NILP_ID);
+      os.write ((char) Serial::SERIAL_NILP_ID);
     } else {
       Serial* sobj = dynamic_cast <Serial*> (p_cdr);
       if (sobj == nilp) {

--- src/std/lib/Vector.cpp.orig 2005-06-17 19:18:13.000000000 -0700
+++ src/std/lib/Vector.cpp      2005-06-17 19:18:22.000000000 -0700
@@ -134,7 +134,7 @@
     for (long i = 0; i < d_length; i++) {
       Object* obj = get (i);
       if (obj == nilp) {
-       os.write (Serial::SERIAL_NILP_ID);
+        os.write ((char) Serial::SERIAL_NILP_ID);
       } else {
        Serial* sobj = dynamic_cast <Serial*> (obj);
        if (sobj == nilp) {

--- src/lib/odb/lib/Cell.cpp.orig       2005-06-17 19:41:10.000000000 -0700
+++ src/lib/odb/lib/Cell.cpp    2005-06-17 19:41:23.000000000 -0700
@@ -104,7 +104,7 @@
     const String& name = String::qmap (d_quark);
     name.wrstream (os);
     if (p_cobj == nilp) 
-      os.write (Serial::SERIAL_NILP_ID);
+      os.write ((char) Serial::SERIAL_NILP_ID);
     else
       p_cobj->serialize (os);
     unlock ();


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to