ctregex.zig icon indicating copy to clipboard operation
ctregex.zig copied to clipboard

Update for Zig 0.11

Open dadrian opened this issue 1 year ago • 0 comments

This updates build.zig to use the newer APIs, and changes ctregex.zig to build under 0.11.0.

  • Use @min instead of std.math.min
  • @truncate only takes one parameter now
  • Run zig fmt to autoconvert to the new for loop index syntax (0..)
  • Using more specific fmt specifiers to prevent runtime crashes on errors

dadrian avatar Aug 24 '23 04:08 dadrian