Explorar o código

LibJS: Fix m_allocations_since_last_gc initialization value

Linus Groh %!s(int64=4) %!d(string=hai) anos
pai
achega
8c99968ec1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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_allocations_since_last_gc { false };
+    size_t m_allocations_since_last_gc { 0 };
 
     bool m_should_collect_on_every_allocation { false };