aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.zig
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-14 14:43:18 +0000
committers-ol <s-ol@users.noreply.github.com>2020-05-14 14:43:18 +0000
commit1ec42e5d1712321097b332ea5a278666e7c09c50 (patch)
tree19c3edef9eef98fa71387c1d8870a77d4f285235 /src/config.zig
parentformat, remove debug GL output (diff)
downloadglsl-view-1ec42e5d1712321097b332ea5a278666e7c09c50.tar.gz
glsl-view-1ec42e5d1712321097b332ea5a278666e7c09c50.zip
update for zig 0.6.0
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index ad4a181..5bc449d 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -60,7 +60,7 @@ pub const Config = struct {
const file = try fs.cwd().openFile(filename, .{});
var buffer: [1024]u8 = undefined;
const len: usize = try file.read(buffer[0..]);
- c.yaml_parser_set_input_string(&parser, buffer[0..].ptr, len);
+ c.yaml_parser_set_input_string(&parser, buffer[0..], len);
var config: Config = .{
.width = 1920,