libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] gvars3/src serialize.cc


From: Edward Rosten
Subject: [libcvd-members] gvars3/src serialize.cc
Date: Tue, 05 May 2009 10:59:46 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    gvars3
Changes by:     Edward Rosten <edrosten>        09/05/05 10:59:46

Modified files:
        src            : serialize.cc 

Log message:
        Remove spurious parse error

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gvars3/src/serialize.cc?cvsroot=libcvd&r1=1.16&r2=1.17

Patches:
Index: serialize.cc
===================================================================
RCS file: /cvsroot/libcvd/gvars3/src/serialize.cc,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- serialize.cc        5 May 2009 10:10:13 -0000       1.16
+++ serialize.cc        5 May 2009 10:59:46 -0000       1.17
@@ -106,10 +106,7 @@
                if(i.good())
                        return 0;
 
-               if(i.bad())
-                       return 1;
-
-               if(i.fail())
+               if(i.bad() || (i.fail() && !i.eof()))
                {
                        return -i.tellg();
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]