Merge pull request #5562 from alexrp/master
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogProcessor.cs
index 7e8111b6c29cd941988d7aa6d2cf24bc9bea11d7..f6928f74505c4f9dd6390eda8ac5c7b048c4aa66 100644 (file)
@@ -397,7 +397,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 (),
                                                };
                                        }