Skip to content

Commit dd39575

Browse files
committed
fix: when equal to 16 bytes use SIMD
1 parent 670a9ff commit dd39575

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
run: dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
8888

8989
- name: Create GitHub Release
90-
uses: softprops/action-gh-release@v1
90+
uses: softprops/action-gh-release@v2
9191
with:
9292
files: ./artifacts/*.nupkg
9393
generate_release_notes: true

src/Base58Encoding/CountLeading.Base58.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal static int CountLeadingZeros(ReadOnlySpan<byte> data)
1212
if (data.Length == 0)
1313
return 0;
1414

15-
if (data.Length <= 16)
15+
if (data.Length < 16)
1616
return CountLeadingZerosScalar(data);
1717

1818
int count = CountLeadingZerosSimd(data, out int processed);

0 commit comments

Comments
 (0)