Skip to content

Commit

Permalink
Shorten line.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Nov 25, 2015
1 parent 0952c5b commit 0131145
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/linad99/fvar_fn1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ prevariable& exp(const prevariable& v1)
double tmp = ::exp(v1.v->x);

#ifndef OPT_LIB
///\todo Must remove macros below once support for MSVC++11 and Solaris Studio 12.3 are removed.
/** \todo Must remove macros below once support
for MSVC++11 and Solaris Studio 12.3 are removed.
*/
#if !defined(__SUNPRO_CC) && !(defined(_MSC_VER) && (_MSC_VER <= 1700))
if (!std::isfinite(tmp))
{
cerr << "Error: Result of \"exp(prevariable(" << value(v1) << ")) = " << tmp << "\" is not finite.\n";
cerr << "Error: Result of \"exp(prevariable(" << value(v1) << ")) = "
<< tmp << "\" is not finite.\n";
ad_exit(1);
}
#endif
Expand Down

0 comments on commit 0131145

Please sign in to comment.