[MOAB-dev] r4975 - MOAB/trunk/itaps/imesh
jvporter at wisc.edu
jvporter at wisc.edu
Wed Jun 8 15:45:47 CDT 2011
Author: jvporter
Date: 2011-06-08 15:45:46 -0500 (Wed, 08 Jun 2011)
New Revision: 4975
Modified:
MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
Make sure that tag value type is valid in iMesh_createTag
Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2011-06-08 19:56:43 UTC (rev 4974)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2011-06-08 20:45:46 UTC (rev 4975)
@@ -1561,6 +1561,7 @@
{
if (tag_size < 0)
ERROR(iBase_INVALID_ARGUMENT, "iMesh_createTag: invalid tag size");
+ CHKENUM(tag_type, iBase_TagValueType, iBase_INVALID_ARGUMENT);
Tag new_tag;
int this_size = tag_size;
More information about the moab-dev
mailing list