An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 21179a2a authored by Alexander Neundorf's avatar Alexander Neundorf
Browse files

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
parent f5bcc82b
......@@ -301,8 +301,8 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
if (hexOutputArg.IsEnabled())
{
// Convert part of the file into hex code
int c;
while((sizeLimit != 0) && (c = file.get(), file))
char c;
while((sizeLimit != 0) && (file.get(c)))
{
char hex[4];
sprintf(hex, "%.2x", c&0xff);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment