Skip to content

Commit

Permalink
fix: Comment out _pad7_e__FixedBuffer's index getter to avoid compile…
Browse files Browse the repository at this point in the history
… error #44
  • Loading branch information
netpyoung committed May 23, 2022
1 parent 39e6381 commit ae79b8a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions unity_project/Assets/unity.webp/Runtime/Interop/WebPPicture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,18 @@ public unsafe partial struct _pad7_e__FixedBuffer
public void* e0;
public void* e1;

public ref void* this[int index]
{
get
{
fixed (void** pThis = &e0)
{
return ref pThis[index];
}
}
}
// NOTE(pyoung): Comment out to avoid compile error
// - ref: https://github.com/netpyoung/unity.webp/issues/44#issuecomment-1134680004
//public ref void* this[int index]
//{
// get
// {
// fixed (void** pThis = &e0)
// {
// return ref pThis[index];
// }
// }
//}
}
}

Expand Down

0 comments on commit ae79b8a

Please sign in to comment.