Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
svn path=/trunk/debugger/; revision=77345
  • Loading branch information
Martin Baulig committed May 14, 2007
1 parent 1a13e7f commit 18efc46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions languages/mono/MonoClassInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ internal MonoClassInfo (TargetMemoryAccess target, MonoLanguageBackend mono,
}
}

public bool IsGenericClass {
get { return !GenericClass.IsNull; }
}

public int[] FieldOffsets {
get { return field_offsets; }
}
Expand Down
2 changes: 1 addition & 1 deletion languages/mono/MonoLanguageBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ internal MonoClassInfo GetClassInfo (TargetMemoryAccess memory, TargetAddress kl

info = new MonoClassInfo (memory, this, token, klass_address);
class_info_by_addr.Add (klass_address, info);
if (info.GenericClass.IsNull)
if (!info.IsGenericClass)
class_info_by_type.Add (tdef, info);
return info;
}
Expand Down

0 comments on commit 18efc46

Please sign in to comment.