From a5a36337e88a15befbb814cdd14a4801e44f6673 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 26 Jun 2023 23:43:39 +0200 Subject: Revised exercises due to the changes of Zig version 0.11.0-dev.3853 --- patches/patches/078_sentinels3.patch | 2 +- patches/patches/096_memory_allocation.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'patches') diff --git a/patches/patches/078_sentinels3.patch b/patches/patches/078_sentinels3.patch index 94257b0..31185d6 100644 --- a/patches/patches/078_sentinels3.patch +++ b/patches/patches/078_sentinels3.patch @@ -1,4 +1,4 @@ 24c24 < const printable: [*:0]const u8 = ???; --- -> const printable: [*:0]const u8 = @ptrCast([*:0]const u8, data); +> const printable: [*:0]const u8 = @ptrCast(data); diff --git a/patches/patches/096_memory_allocation.patch b/patches/patches/096_memory_allocation.patch index fd990b0..a3db349 100644 --- a/patches/patches/096_memory_allocation.patch +++ b/patches/patches/096_memory_allocation.patch @@ -1,4 +1,4 @@ -66c66 +67c67 < var avg: []f64 = ???; --- > var avg: []f64 = try allocator.alloc(f64, arr.len); -- cgit v1.2.3-70-g09d2