mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed Emit marker in generic types where unspecialized has no emission
This commit is contained in:
parent
1abccdedf8
commit
7ddec857f6
6 changed files with 179 additions and 77 deletions
|
@ -2182,12 +2182,12 @@ namespace IDE.ui
|
|||
for (var emitEmbedData in resolveParams.mEmitEmbeds)
|
||||
{
|
||||
var data = resolvePassData.GetEmitEmbedData(emitEmbedData.mTypeName, var srcLength, var revision);
|
||||
if (srcLength > 0)
|
||||
{
|
||||
emitEmbedData.mCharData = new EditWidgetContent.CharData[srcLength+1] (?);
|
||||
emitEmbedData.mCharData[srcLength] = default;
|
||||
Internal.MemCpy(emitEmbedData.mCharData.Ptr, data, srcLength * strideof(EditWidgetContent.CharData));
|
||||
}
|
||||
if (srcLength < 0)
|
||||
srcLength = 0;
|
||||
|
||||
emitEmbedData.mCharData = new EditWidgetContent.CharData[srcLength+1] (?);
|
||||
emitEmbedData.mCharData[srcLength] = default;
|
||||
Internal.MemCpy(emitEmbedData.mCharData.Ptr, data, srcLength * strideof(EditWidgetContent.CharData));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue