File tree Expand file tree Collapse file tree 6 files changed +18
-665
lines changed
Expand file tree Collapse file tree 6 files changed +18
-665
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ function or macro in the C API.
336336
337337## Licensing
338338
339- The ` zig-luajit ` Zig languge bindings are distributed under the terms of the AGPL-3.0 License. The terms of this
339+ The ` zig-luajit ` Zig languge bindings are distributed under the terms of the open and permissive MIT License. The terms of this
340340license can be found in the [ LICENSE] ( ./LICENSE ) file.
341341
342342This project depends on source code and other artifacts from third parties. Information about their respective licenses
Original file line number Diff line number Diff line change 11//! Copyright (c) 2024-2025 Theodore Sackos
2- //! SPDX-License-Identifier: AGPL-3.0-or-later
2+ //! SPDX-License-Identifier: MIT
33
44const std = @import ("std" );
55
Original file line number Diff line number Diff line change 11//! Copyright (c) 2024-2025 Theodore Sackos
2- //! SPDX-License-Identifier: AGPL-3.0-or-later
2+ //! SPDX-License-Identifier: MIT
33
44const std = @import ("std" );
55const Lua = @import ("luajit" ).Lua ;
Original file line number Diff line number Diff line change 11//! Copyright (c) 2024-2025 Theodore Sackos
2- //! SPDX-License-Identifier: AGPL-3.0-or-later
2+ //! SPDX-License-Identifier: MIT
33
44const std = @import ("std" );
55
Original file line number Diff line number Diff line change 11//! Copyright (c) 2024-2025 Theodore Sackos
2- //! SPDX-License-Identifier: AGPL-3.0-or-later
2+ //! SPDX-License-Identifier: MIT
33
44const std = @import ("std" );
55const assert = std .debug .assert ;
@@ -2100,7 +2100,7 @@ pub const Lua = opaque {
21002100
21012101 _ = l ;
21022102
2103- const context : * @This () = @alignCast ( @ptrCast (ud ));
2103+ const context : * @This () = @ptrCast ( @alignCast (ud ));
21042104 const slice : []const u8 = @as ([* ]const u8 , @ptrCast (bytes ))[0.. size ];
21052105 context .writer .writeAll (slice ) catch | err | {
21062106 return @intCast (@intFromError (err ));
@@ -2155,7 +2155,7 @@ pub const Lua = opaque {
21552155 fn loadAdapter (l : * Lua , ud : ? * anyopaque , size : * usize ) callconv (.c ) [* ]const u8 {
21562156 assert (ud != null );
21572157
2158- const context : * @This () = @alignCast ( @ptrCast (ud .? ));
2158+ const context : * @This () = @ptrCast ( @alignCast (ud .? ));
21592159 const actual = context .reader .read (context .read_buffer ) catch | err | {
21602160 _ = l .pushFString ("Unable to load function, found error '%s' while reading." , .{@errorName (err ).ptr });
21612161 l .raiseError ();
You can’t perform that action at this time.
0 commit comments