Skip to content

Commit d2e3399

Browse files
committed
Fixed failing test
1 parent 7f106ea commit d2e3399

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

WebAssembly/Section.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace WebAssembly;
1+
using System;
2+
3+
namespace WebAssembly;
24

35
/// <summary>
46
/// The standard section identifiers.
@@ -61,5 +63,5 @@ public enum Section : byte
6163

6264
static class SectionExtensions
6365
{
64-
public static bool IsValid(this Section section) => section <= Section.Data;
66+
public static bool IsValid(this Section section) => section <= Section.DataCount;
6567
}

0 commit comments

Comments
 (0)