Skip to content

Commit

Permalink
Revert "in utf8_to_string, change the fixed statement to call GetPinn…
Browse files Browse the repository at this point in the history
…ableReference on the span explicitly instead of letting the C# 7.3 fixed statement call it implicitly. no change in behavior or effect. working on #321"

This reverts commit d0d81f3.
  • Loading branch information
ericsink committed Jun 4, 2020
1 parent d0d81f3 commit 299ef4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Copyright>Copyright 2014-2020 SourceGear, LLC</Copyright>
<Company>SourceGear</Company>
<Authors>Eric Sink</Authors>
<Version>2.0.4-pre20200603191009</Version>
<Version>2.0.4-pre20200603163150</Version>
<AssemblyVersion>2.0.4.884</AssemblyVersion>
<FileVersion>2.0.4.884</FileVersion>
<Description>SQLitePCLRaw is a Portable Class Library (PCL) for low-level (raw) access to SQLite</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/SQLitePCLRaw.core/utf8z.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public string utf8_to_string()

unsafe
{
fixed (byte* q = &sp.GetPinnableReference())
fixed (byte* q = sp)
{
return Encoding.UTF8.GetString(q, sp.Length - 1);
}
Expand Down

0 comments on commit 299ef4f

Please sign in to comment.