~fix magic union autoselect
Stop of after first successful conversion
This commit is contained in:
@@ -696,6 +696,7 @@ void Value::copyIn(const void *ptr, StoreType type)
|
||||
continue;
|
||||
}
|
||||
val = std::move(temp);
|
||||
break;
|
||||
}
|
||||
if(!val)
|
||||
throw NoConvert("Unsupported assignment to unselected union");
|
||||
|
||||
Reference in New Issue
Block a user