Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/PbfReader/PbfReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public long Varint()

}


public long SInt()
{
long varint = Varint();
return decodeZigZag64(varint);
}
/// <summary>
/// <para>Get a view into the buffer.</para>
/// <para>TODO: refactor to return a DataView instead of a byte array</para>
Expand Down
2 changes: 1 addition & 1 deletion src/VectorTileReader/VectorTileReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private VectorTileLayer getLayer(byte[] data)
layer.Values.Add(u64);
break;
case ValueType.SInt:
long s64 = valReader.Varint();
long s64 = valReader.SInt();
layer.Values.Add(s64);
break;
case ValueType.Bool:
Expand Down