zig-wasm-dom icon indicating copy to clipboard operation
zig-wasm-dom copied to clipboard

Zig 0.11

Open alexgenaud opened this issue 11 months ago • 0 comments

Line 115: Replace @enumToInt(event_id) with @intFromEnum(event_id)

Line 120: Replace switch (@intToEnum(eventId, id)) { with

    var e: eventId = @enumFromInt(id);
    switch (e) {

Line 157: Replace return @ptrToInt(buf.ptr); with return @intFromPtr(buf.ptr);

The above changes will build with Zig 0.11. Though, I had trouble running in localhost python simple webserver.

alexgenaud avatar Mar 05 '24 00:03 alexgenaud