[Mono.Profiler.Log] Read root type field as uleb128.
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogProcessor.cs
index 5afdbbeb4eb237e0dc0d0c3ac1bf45558dd991b3..51908e1ca27a0a07b9afd85e5210af1b1f5dc651 100644 (file)
@@ -364,7 +364,7 @@ namespace Mono.Profiler.Log {
                                        for (var i = 0; i < list.Length; i++) {
                                                list [i] = new HeapRootsEvent.HeapRoot {
                                                        ObjectPointer = ReadObject (),
-                                                       Attributes = (LogHeapRootAttributes) Reader.ReadByte (),
+                                                       Attributes = (LogHeapRootAttributes) Reader.ReadULeb128 (),
                                                        ExtraInfo = (long) Reader.ReadULeb128 (),
                                                };
                                        }