Fix Array.Shuffle() on String, Long and Object arrays.

[INTERPRETER]
* BUG: Fix Array.Shuffle() on String, Long and Object arrays.
This commit is contained in:
gambas 2019-03-20 19:39:56 +01:00
parent a6eb422756
commit 2bb7d795b7

View file

@ -823,9 +823,9 @@ BEGIN_METHOD_VOID(Array_Shuffle)
__SWAP_LONG:
{
int64_t t = *(char *)p1;
*(char *)p1 = *(char *)p2;
*(char *)p2 = t;
int64_t t = *(int64_t *)p1;
*(int64_t *)p1 = *(int64_t *)p2;
*(int64_t *)p2 = t;
continue;
}