Quellcode durchsuchen

Update AngelScript - Fixed 32bit/64bit compatibility of saved bytecode in functions returning handles. (#2838)

orefkov vor 4 Jahren
Ursprung
Commit
e08df3d0cf

+ 2 - 2
Source/ThirdParty/AngelScript/Urho3DNotes.txt

@@ -1,3 +1,3 @@
 URL: https://github.com/codecat/angelscript-mirror
 URL: https://github.com/codecat/angelscript-mirror
-Date: 11.10.2021
-Latest commit: https://github.com/codecat/angelscript-mirror/commit/ad266755039d8969abdd9df2cd92b631436808a1
+Date: 14.10.2021
+Latest commit: https://github.com/codecat/angelscript-mirror/commit/522a5fe8efbb8b4f964801e5515eafd8c018d46c

+ 1 - 1
Source/ThirdParty/AngelScript/source/as_restore.cpp

@@ -4860,7 +4860,7 @@ void asCWriter::CalculateAdjustmentByPos(asCScriptFunction *func)
 	}
 	}
 
 
 	// Build look-up table with the adjustments for each stack position
 	// Build look-up table with the adjustments for each stack position
-	adjustStackByPos.SetLength(func->scriptData->stackNeeded);
+	adjustStackByPos.SetLength(func->scriptData->stackNeeded+AS_PTR_SIZE); // Add space for a pointer stored in a temporary variable
 	memset(adjustStackByPos.AddressOf(), 0, adjustStackByPos.GetLength()*sizeof(int));
 	memset(adjustStackByPos.AddressOf(), 0, adjustStackByPos.GetLength()*sizeof(int));
 	for( n = 0; n < adjustments.GetLength(); n+=2 )
 	for( n = 0; n < adjustments.GetLength(); n+=2 )
 	{
 	{