AnnulusGames / BurstLinq

Extremely fast LINQ aggregation operations implementation optimized by Burst Compiler
MIT License
205 stars 12 forks source link

error CS1503: Argument 1: cannot convert from 'void*' to 'int*' #5

Closed parsue closed 7 months ago

parsue commented 7 months ago

Mulitple lines error in following files: Library\PackageCache\com.annulusgames.burst-linq@bd8729e0f4\Runtime\BurstLinqExtensions.Native.Average.cs Library\PackageCache\com.annulusgames.burst-linq@bd8729e0f4\Runtime\BurstLinqExtensions.Native.Contains.cs Library\PackageCache\com.annulusgames.burst-linq@bd8729e0f4\Runtime\BurstLinqExtensions.Native.Max.cs Library\PackageCache\com.annulusgames.burst-linq@bd8729e0f4\Runtime\BurstLinqExtensions.Native.Min.cs Library\PackageCache\com.annulusgames.burst-linq@bd8729e0f4\Runtime\BurstLinqExtensions.Native.SequenceEqual.cs

Unity version 2023.2.13.f1 Burst: 1.8.12

ckocank commented 7 months ago

same error

AnnulusGames commented 7 months ago

This error seems to be caused by the version of the Collections package. GetUnsafePtr() returns void* for old Collections.

Looks like I need to add an explicit cast to prevent the error.

AnnulusGames commented 7 months ago

Fixed in #7.