From cfa40e225adb30b777ef50d9d8dc15a51e3d2797 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 3 Sep 2022 20:01:50 -0700 Subject: Prefer stdbool for MJIT options same motivation as d6f21b308bcff03e82f8b3dbf11a852ce111b3b3 --- mjit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mjit.c') diff --git a/mjit.c b/mjit.c index a873b3d9f8..662ef99b32 100644 --- a/mjit.c +++ b/mjit.c @@ -1768,19 +1768,19 @@ mjit_setup_options(const char *s, struct mjit_options *mjit_opt) return; } else if (opt_match_noarg(s, l, "warnings")) { - mjit_opt->warnings = 1; + mjit_opt->warnings = true; } else if (opt_match(s, l, "debug")) { if (*s) mjit_opt->debug_flags = strdup(s + 1); else - mjit_opt->debug = 1; + mjit_opt->debug = true; } else if (opt_match_noarg(s, l, "wait")) { - mjit_opt->wait = 1; + mjit_opt->wait = true; } else if (opt_match_noarg(s, l, "save-temps")) { - mjit_opt->save_temps = 1; + mjit_opt->save_temps = true; } else if (opt_match(s, l, "verbose")) { mjit_opt->verbose = *s ? atoi(s + 1) : 1; -- cgit v1.2.3