]> www.ginac.de Git - ginac.git/blobdiff - ginac/archive.cpp
- Changes to make it more ANSI-conformant. Stuff detected while trying
[ginac.git] / ginac / archive.cpp
index dcfb00dc9c37e382cb0ae88550cec11adaf4fd93..171766c98678ff8678bd7244ce98d5cc4ee1e532 100644 (file)
@@ -188,7 +188,9 @@ static unsigned int read_unsigned(std::istream &is)
        unsigned int ret = 0;
        unsigned int shift = 0;
        do {
-               is.get(b);
+        char b2;
+               is.get(b2);
+        b = b2;
                ret |= (b & 0x7f) << shift;
                shift += 7;
        } while (b & 0x80);