Browse Source

LibJS: Fix m_allocations_since_last_gc initialization value

Linus Groh 4 years ago
parent
commit
8c99968ec1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibJS/Heap/Heap.h

+ 1 - 1
Userland/Libraries/LibJS/Heap/Heap.h

@@ -112,7 +112,7 @@ private:
     }
     }
 
 
     size_t m_max_allocations_between_gc { 10000 };
     size_t m_max_allocations_between_gc { 10000 };
-    size_t m_allocations_since_last_gc { false };
+    size_t m_allocations_since_last_gc { 0 };
 
 
     bool m_should_collect_on_every_allocation { false };
     bool m_should_collect_on_every_allocation { false };