NetBSD port

This commit is contained in:
Ulrich Wilkens
2014-02-20 19:19:17 +01:00
committed by Jon Trulson
parent a4f9413950
commit 2712d5f787
94 changed files with 2443 additions and 302 deletions

View File

@@ -23,6 +23,7 @@
// $TOG: autoNumber.C /main/6 1998/04/17 11:47:13 mgreess $
#include <ctype.h>
#include <limits.h>
#if defined(CSRG_BASED)
#define MAXINT INT_MAX
#else

View File

@@ -500,7 +500,7 @@ FeatureValue::operator const char *() const
FeatureValueReal::operator int() const
{
return f_value ;
return (int)f_value ;
}
FeatureValueReal::operator float() const
@@ -612,7 +612,7 @@ FeatureValueExpression::operator const char *() const
FeatureValueDimension::operator int () const
{
if ( f_cachedValue != -1 )
return f_cachedValue;
return (int)f_cachedValue;
if ( f_value == 0 )
throw(CASTBEEXCEPT badEvaluationException()) ;