[Cmake-commits] [cmake-commits] alex committed cmFileCommand.cxx 1.134 1.135
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun Sep 6 13:24:58 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv32462
Modified Files:
cmFileCommand.cxx
Log Message:
Try to fix the failing new StringFileTest on HP-UX
It seems that
while(i=file.get(), file)
iterates one character too much on HP-UX, let's see whether
while(file.get(c))
works, at least this is given as example on http://h30097.www3.hp.com/cplus/ifstream_3c__std.htm
Alex
Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.134
retrieving revision 1.135
diff -C 2 -d -r1.134 -r1.135
*** cmFileCommand.cxx 6 Sep 2009 13:49:58 -0000 1.134
--- cmFileCommand.cxx 6 Sep 2009 17:24:56 -0000 1.135
***************
*** 302,307 ****
{
// Convert part of the file into hex code
! int c;
! while((sizeLimit != 0) && (c = file.get(), file))
{
char hex[4];
--- 302,307 ----
{
// Convert part of the file into hex code
! char c;
! while((sizeLimit != 0) && (file.get(c)))
{
char hex[4];
More information about the Cmake-commits
mailing list