Skip to content

Commit

Permalink
Make the -1 value a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
xenolightning committed May 5, 2024
1 parent be13820 commit f1c8e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public static RaygunErrorStackTraceLineMessage[] BuildStackTrace(StackTrace stac
string file = null;
string className = null;
var lineNumber = 0;
var ilOffset = -1;
var methodToken = -1;
var ilOffset = StackFrame.OFFSET_UNKNOWN;
var methodToken = StackFrame.OFFSET_UNKNOWN;

try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public static RaygunErrorStackTraceLineMessage[] BuildStackTrace(StackTrace stac
string file = null;
string className = null;
var lineNumber = 0;
var ilOffset = -1;
var methodToken = -1;
var ilOffset = StackFrame.OFFSET_UNKNOWN;
var methodToken = StackFrame.OFFSET_UNKNOWN;

try
{
Expand Down

0 comments on commit f1c8e66

Please sign in to comment.