Maybe const cast?
This commit is contained in:
parent
80d398f540
commit
7477e55349
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ pub fn parseArgs(comptime T: type, allocator: Allocator) !T {
|
|||
const args = try std.process.argsAlloc(allocator);
|
||||
defer std.process.argsFree(allocator, args);
|
||||
|
||||
return parseArgsFromSlice(T, allocator, args[1..]);
|
||||
return parseArgsFromSlice(T, allocator, @constCast(args[1..]));
|
||||
}
|
||||
|
||||
/// All items of `args` must be valid, otherwise you will get a General Protection Fault.
|
||||
|
|
|
|||
Loading…
Reference in a new issue