mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-04 19:36:23 +08:00
Sync changes from upstream repository
This commit is contained in:
@@ -102,10 +102,10 @@ static int ON__isnand(const double* x)
|
||||
}
|
||||
else
|
||||
{
|
||||
// This sitation is not handled by this algorithm
|
||||
// This situation is not handled by this algorithm
|
||||
// and that is a bug in the algorithm.
|
||||
ON_ERROR("Unexpected bit pattern in double 2.0.");
|
||||
// assum little endian doubles
|
||||
// assume little endian doubles
|
||||
b7 = 7;
|
||||
b6 = 6;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ static int ON__isnanf(const float* x)
|
||||
}
|
||||
else
|
||||
{
|
||||
// This sitation is not handled by this algorithm
|
||||
// This situation is not handled by this algorithm
|
||||
// and that is a bug in the algorithm.
|
||||
ON_ERROR("Unexpected bit pattern in float 2.0f.");
|
||||
// assume little endian floats
|
||||
@@ -288,7 +288,7 @@ void ON_DBL_SNAN( double* x)
|
||||
|
||||
|
||||
// must use memcpy(). On Intel FPU, assignment using x = u.x
|
||||
// will set x to qnan and invalid op exception occures.
|
||||
// will set x to qnan and invalid op exception occurs.
|
||||
memcpy(x,&u.x,sizeof(*x));
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ void ON_FLT_SNAN( float* x)
|
||||
#endif
|
||||
|
||||
// must use memcpy(). On Intel FPU, assignment using x = u.x
|
||||
// will set x to qnan and invalid op exception occures.
|
||||
// will set x to qnan and invalid op exception occurs.
|
||||
memcpy(x,&u.x,sizeof(*x));
|
||||
}
|
||||
|
||||
@@ -842,7 +842,7 @@ ON_UUID ON_GetMostRecentClassIdCreateUuid()
|
||||
ON_Object* ON_ClassId::Create() const
|
||||
{
|
||||
// Save the uuid so that Rhino's .NET SDK
|
||||
// can create approprate class. The C++
|
||||
// can create appropriate class. The C++
|
||||
// opennurbs toolkit never uses this value.
|
||||
s_most_recent_class_id_create_uuid = m_uuid;
|
||||
return m_create ? m_create() : 0;
|
||||
@@ -1785,7 +1785,7 @@ bool ON_Object::ThisIsNullptr(
|
||||
bool bSilentError
|
||||
) const
|
||||
{
|
||||
// CLang warns that these tests may be ommitted because in "well-defined C++ code"
|
||||
// CLang warns that these tests may be omitted because in "well-defined C++ code"
|
||||
// they are always false.
|
||||
//
|
||||
// Earth to CLang:
|
||||
|
||||
Reference in New Issue
Block a user