X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Farray2dfile.cpp;h=d0f2d6859051a7fc72c82e065f6560e50dc14345;hp=ca45d8b820eaea485272a6e6f824243c01ac0b89;hb=7ec2cd66921180a624813dff9f8bac76c6b268cc;hpb=bc5a9ca28bc4da3691fb859945d2862f6155835b diff --git a/libctsim/array2dfile.cpp b/libctsim/array2dfile.cpp index ca45d8b..d0f2d68 100644 --- a/libctsim/array2dfile.cpp +++ b/libctsim/array2dfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.cpp,v 1.22 2000/12/29 19:30:08 kevin Exp $ +** $Id: array2dfile.cpp,v 1.23 2001/01/01 10:14:34 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -410,7 +410,7 @@ Array2dFile::headerRead (frnetorderstream& fs) return false; } - return true; + return ! fs.fail(); } @@ -448,7 +448,7 @@ Array2dFile::headerWrite (frnetorderstream& fs) fs.seekp (0); fs.writeInt16 (m_headersize); - return true; + return ! fs.fail(); }