GP-4020 Send core data-type id as unsigned

This commit is contained in:
caheckman 2023-11-07 21:18:02 +00:00
parent 5bb3952244
commit 053097616a
2 changed files with 3 additions and 4 deletions

View file

@ -3021,7 +3021,7 @@ Datatype *TypeFactory::findAdd(Datatype &ct)
if (ct.name.size()!=0) { // If there is a name
if (ct.id == 0) // There must be an id
throw LowlevelError("Datatype must have a valid id");
throw LowlevelError("Datatype must have a valid id: "+ct.name);
res = findByIdLocal(ct.name,ct.id); // Lookup type by it
if (res != (Datatype *)0) { // If a type has this name
if (0!=res->compareDependency( ct )) // Check if it is the same type