mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixes issue where functions could not be found if local and imported names clashed.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
module std::core::array;
|
||||
import std::core::mem::array;
|
||||
|
||||
macro tconcat(arr1, arr2)
|
||||
{
|
||||
var $Type = $typeof(arr1[0]);
|
||||
$Type[] result = mem::array::talloc($Type, arr1.len + arr2.len);
|
||||
$Type[] result = array::talloc($Type, arr1.len + arr2.len);
|
||||
if (arr1.len > 0)
|
||||
{
|
||||
mem::copy(result.ptr, &arr1[0], arr1.len * $Type.sizeof, $alignof($Type), $alignof($Type));
|
||||
@@ -19,7 +18,7 @@ macro tconcat(arr1, arr2)
|
||||
macro concat(arr1, arr2)
|
||||
{
|
||||
var $Type = $typeof(arr1[0]);
|
||||
$Type[] result = mem::array::alloc($Type, arr1.len + arr2.len);
|
||||
$Type[] result = array::alloc($Type, arr1.len + arr2.len);
|
||||
if (arr1.len > 0)
|
||||
{
|
||||
mem::copy(result.ptr, &arr1[0], arr1.len * $Type.sizeof, $alignof($Type), $alignof($Type));
|
||||
|
||||
Reference in New Issue
Block a user