Skip to content

Commit

Permalink
fix bug #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton92nd committed Jan 13, 2022
1 parent 849d444 commit cb03248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.7.XX - 2022.01.13
- Fix bug with negative array indices in GroBufHelpers static constructor on some Mono platforms (issue #28).

## v1.7.6 - 2021.11.30
- Drop netcoreapp2.1 support.
- Update GrEmit dependency to v3.4.10.
Expand Down
2 changes: 1 addition & 1 deletion GroBuf/GroBufHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ into attribute
var n = CalcSize(types.Select(x => (ulong)x.TypeHandle.Value.ToInt64()).ToArray());
var result = new Type[n];
foreach (var x in types)
result[x.TypeHandle.Value.ToInt64() % n] = x;
result[(ulong)x.TypeHandle.Value.ToInt64() % n] = x;
return result;
}

Expand Down

0 comments on commit cb03248

Please sign in to comment.