[GiNaC-list] small portability fix
Sheplyakov Alexei
varg at theor.jinr.ru
Mon Nov 7 20:50:16 CET 2005
Hello!
On Thu, Nov 03, 2005 at 11:23:59PM +0100, Richard B. Kreckel wrote:
> Never mind. I've committed a modified version of your patch that should
> address those issues. Please check if it works for you.
Could you please apply this trivial patch too?
Index: check/exam_archive.cpp
===================================================================
RCS file: /home/cvs/GiNaC/check/exam_archive.cpp,v
retrieving revision 1.15
diff -r1.15 exam_archive.cpp
57c57
< std::ofstream fout("exam.gar");
---
> std::ofstream fout("exam.gar", std::ios_base::binary);
62c62
< std::ifstream fin("exam.gar");
---
> std::ifstream fin("exam.gar", std::ios_base::binary);
Index: tools/viewgar.cpp
===================================================================
RCS file: /home/cvs/GiNaC/tools/viewgar.cpp,v
retrieving revision 1.14
diff -r1.14 viewgar.cpp
49c49
< std::ifstream f(*argv);
---
> std::ifstream f(*argv, std::ios_base::binary);
It makes viewgar and archiving tests work properly.
Best regards,
Alexei
--
All science is either physics or stamp collecting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20051107/3e0aa970/attachment.pgp
More information about the GiNaC-list
mailing list