From 931ef2cd0bd104fbbbb3214a9b36758ac288c670 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 7 Oct 2018 21:15:09 +0200 Subject: [PATCH] StepFile: fix conversion from ulong to uint. --- code/STEPFile.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/STEPFile.h b/code/STEPFile.h index f052990f1..6245290b6 100644 --- a/code/STEPFile.h +++ b/code/STEPFile.h @@ -139,10 +139,10 @@ namespace STEP { * error (i.e. an entity expects a string but receives a bool) occurs. * It is typically coupled with both an entity id and a line number.*/ // ------------------------------------------------------------------------------- - struct TypeError : DeadlyImportError - { + struct TypeError : DeadlyImportError { enum { - ENTITY_NOT_SPECIFIED = 0xffffffffffffffffLL + ENTITY_NOT_SPECIFIED = 0xffffffffffffffffLL, + ENTITY_NOT_SPECIFIED_32 = -1u }; TypeError (const std::string& s,uint64_t entity = ENTITY_NOT_SPECIFIED, uint64_t line = SyntaxError::LINE_NOT_SPECIFIED); @@ -364,7 +364,7 @@ namespace STEP { } BINARY() - : PrimitiveDataType(TypeError::ENTITY_NOT_SPECIFIED) { + : PrimitiveDataType(TypeError::ENTITY_NOT_SPECIFIED_32) { // empty } };