NetBSD port
This commit is contained in:
committed by
Jon Trulson
parent
a4f9413950
commit
2712d5f787
@@ -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
|
||||
|
||||
@@ -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()) ;
|
||||
|
||||
Reference in New Issue
Block a user