Skip to content

Commit 3162e04

Browse files
committed
Fixed wrong variable name.
1 parent f113e53 commit 3162e04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ReClass.NET/AddressParser/DynamicCompiler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static Expression GenerateMethodBody(IExpression operation, ParameterExp
8686
{
8787
#if RECLASSNET64
8888
// long -> IntPtr
89-
return Expression.Convert(Expression.Constant(nodeNumber.Value), typeof(IntPtr));
89+
return Expression.Convert(Expression.Constant(constantExpression.Value), typeof(IntPtr));
9090
#else
9191
// long -> int -> IntPtr
9292
return Expression.Convert(Expression.Convert(Expression.Constant(constantExpression.Value), typeof(int)), typeof(IntPtr));

ReClass.NET/AddressParser/Interpreter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public IntPtr Execute(IExpression expression, RemoteProcess process)
1616
{
1717
case ConstantExpression constantExpression:
1818
#if RECLASSNET64
19-
return (IntPtr)nodeNumber.Value;
19+
return (IntPtr)constantExpression.Value;
2020
#else
2121
return (IntPtr)unchecked((int)constantExpression.Value);
2222
#endif

0 commit comments

Comments
 (0)