Browse Source

add 095_memory_allocation.patch

Sean Aubin 2 years ago
parent
commit
a218425ee5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      patches/patches/095_memory_allocation.patch

+ 4 - 0
patches/patches/095_memory_allocation.patch

@@ -0,0 +1,4 @@
+65c65
+<     var avg: []f64 = {};
+---
+>     var avg: []f64 = try allocator.alloc(f64, arr.len);