Skip to content

Commit 843441e

Browse files
authored
[mono][interp] Fix PROFILE_INTERP option (#79104)
1 parent 5a7d46b commit 843441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/interp/interp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8278,7 +8278,7 @@ interp_add_imethod (gpointer method, gpointer user_data)
82788278
static int
82798279
imethod_opcount_comparer (gconstpointer m1, gconstpointer m2)
82808280
{
8281-
long diff = (*(InterpMethod**)m2)->opcounts > (*(InterpMethod**)m1)->opcounts;
8281+
long diff = (*(InterpMethod**)m2)->opcounts - (*(InterpMethod**)m1)->opcounts;
82828282
if (diff > 0)
82838283
return 1;
82848284
else if (diff < 0)

0 commit comments

Comments
 (0)