Skip to content

Commit d34e5c9

Browse files
authored
fix(zip): use ushort for ITaggedData.TagID (#669)
1 parent d31fac3 commit d34e5c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ICSharpCode.SharpZipLib/Zip/ZipExtraData.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface ITaggedData
1515
/// <summary>
1616
/// Get the ID for this tagged data value.
1717
/// </summary>
18-
short TagID { get; }
18+
ushort TagID { get; }
1919

2020
/// <summary>
2121
/// Set the contents of this instance from the data passed.
@@ -41,7 +41,7 @@ public class RawTaggedData : ITaggedData
4141
/// Initialise a new instance.
4242
/// </summary>
4343
/// <param name="tag">The tag ID.</param>
44-
public RawTaggedData(short tag)
44+
public RawTaggedData(ushort tag)
4545
{
4646
_tag = tag;
4747
}
@@ -51,7 +51,7 @@ public RawTaggedData(short tag)
5151
/// <summary>
5252
/// Get the ID for this tagged data value.
5353
/// </summary>
54-
public short TagID
54+
public ushort TagID
5555
{
5656
get { return _tag; }
5757
set { _tag = value; }
@@ -100,7 +100,7 @@ public byte[] Data
100100
/// <summary>
101101
/// The tag ID for this instance.
102102
/// </summary>
103-
private short _tag;
103+
private ushort _tag;
104104

105105
private byte[] _data;
106106

@@ -139,7 +139,7 @@ public enum Flags : byte
139139
/// <summary>
140140
/// Get the ID
141141
/// </summary>
142-
public short TagID
142+
public ushort TagID
143143
{
144144
get { return 0x5455; }
145145
}
@@ -328,7 +328,7 @@ public class NTTaggedData : ITaggedData
328328
/// <summary>
329329
/// Get the ID for this tagged data value.
330330
/// </summary>
331-
public short TagID
331+
public ushort TagID
332332
{
333333
get { return 10; }
334334
}

0 commit comments

Comments
 (0)