Skip to content

Commit a487886

Browse files
committed
Add single byte cast to fix build error on github
1 parent 8fbfe28 commit a487886

File tree

1 file changed

+3
-3
lines changed
  • src/Synercoding.FileFormats.Pdf/LowLevel/XRef

1 file changed

+3
-3
lines changed

src/Synercoding.FileFormats.Pdf/LowLevel/XRef/Entry.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void FillSpan(Span<byte> bytes)
2828
_fillSpanLeadingZero(bytes.Slice(11, 5), GenerationNumber);
2929
bytes[16] = 0x20;
3030

31-
bytes[17] = IsFree ? 0x66 : 0x6E;
31+
bytes[17] = (byte)( IsFree ? 0x66 : 0x6E );
3232
bytes[18] = 0x0D;
3333
bytes[19] = 0x0A;
3434
}
@@ -43,7 +43,7 @@ private void _fillSpanLeadingZero(Span<byte> span, uint data)
4343
uint val = data;
4444
for (int i = span.Length - 1; i >= 0; i--)
4545
{
46-
span[i] = (byte)('0' + (val % 10));
46+
span[i] = (byte)( '0' + ( val % 10 ) );
4747
val /= 10;
4848
}
4949
}
@@ -53,7 +53,7 @@ private void _fillSpanLeadingZero(Span<byte> span, ushort data)
5353
int val = data;
5454
for (int i = span.Length - 1; i >= 0; i--)
5555
{
56-
span[i] = (byte)('0' + (val % 10));
56+
span[i] = (byte)( '0' + ( val % 10 ) );
5757
val /= 10;
5858
}
5959
}

0 commit comments

Comments
 (0)