Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Apr 30, 2024
1 parent 9bf4931 commit 1501f4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions toolchain.common/Parsing/CilParser_VariableDirective.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using chibicc.toolchain.Internal;

namespace chibicc.toolchain.Parsing;

Expand Down Expand Up @@ -77,10 +78,8 @@ public sealed partial class CilParser
$"Invalid data operand: {token}");
return (byte)0;
}
if (!byte.TryParse(
if (!Utilities.TryParseUInt8(
token.Text,
NumberStyles.Integer,
CultureInfo.InvariantCulture,
out var value))
{
this.OutputError(
Expand Down

0 comments on commit 1501f4b

Please sign in to comment.