Skip to content

Commit 0954c5c

Browse files
committed
stupid mistake fixed
1 parent d80a310 commit 0954c5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PolylineAlgorithm.Abstraction/AbstractPolylineEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public TPolyline Encode(IEnumerable<TCoordinate> coordinates) {
8282
throw new InternalBufferOverflowException();
8383
}
8484

85-
if (PolylineEncoding.TryWriteValue(variance.Latitude, ref buffer, ref position)
86-
|| PolylineEncoding.TryWriteValue(variance.Longitude, ref buffer, ref position)
85+
if (!PolylineEncoding.TryWriteValue(variance.Latitude, ref buffer, ref position)
86+
|| !PolylineEncoding.TryWriteValue(variance.Longitude, ref buffer, ref position)
8787
) {
8888
// This shouldn't happen, but if it does, log the error and throw an exception.
8989
Options

0 commit comments

Comments
 (0)