]> www.ginac.de Git - ginac.git/blobdiff - ginac/archive.cpp
- replaced the various print*() member functions by a single print() that
[ginac.git] / ginac / archive.cpp
index 61d60c271e2475306218dbdc0de18a0b8e0c3e3d..8d54681e70152753f975f432437ceafe8062485d 100644 (file)
@@ -29,9 +29,7 @@
 #include "config.h"
 #include "utils.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 
 /** Archive an expression.
@@ -174,7 +172,7 @@ unsigned int archive::num_expressions(void) const
 /** Write unsigned integer quantity to stream. */
 static void write_unsigned(std::ostream &os, unsigned int val)
 {
-       while (val > 0x80) {
+       while (val >= 0x80) {
                os.put((val & 0x7f) | 0x80);
                val >>= 7;
        }
@@ -591,6 +589,4 @@ archive* archive_node::dummy_ar_creator(void)
 }
 
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC