Skip to content

Commit 401e686

Browse files
committed
code_style: it's not necessary to adding 0x prefix when parsing a hex address
Signed-off-by: leo <longshuang@msn.cn>
1 parent 40182d7 commit 401e686

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Views/BinaryFileViewer.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ private void OnGotoAddressTextChanged(object sender, TextChangedEventArgs e)
396396
long idx = 0;
397397
try
398398
{
399-
idx = Convert.ToInt64($"0x{text}", 16);
399+
idx = Convert.ToInt64(text, 16);
400400
}
401401
catch
402402
{

0 commit comments

Comments
 (0)