From 24dc6a338e8d8a38d9b1f55d51c3e8bd0b61fc81 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 25 Nov 2023 17:28:22 +0300 Subject: [PATCH] code substitution: fix formatting --- bytebeat_compiler.py | 2 +- src/template.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 59d8eb3..1933ad6 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -90,7 +90,7 @@ if __name__ == "__main__": makedirs(PATHS["build_dir"], exist_ok=True) if not args.no_return: # Insert return statement - bytebeat_contents = f"\treturn\n\n{bytebeat_contents}" + bytebeat_contents = f"return {bytebeat_contents}" final_sample_rate_code = "" if not args.final_sample_rate is None: diff --git a/src/template.c b/src/template.c index 3496a89..d88058f 100644 --- a/src/template.c +++ b/src/template.c @@ -84,8 +84,7 @@ bytebeat(long double w) { `final_sample_rate_code` uintmax_t t = (uintmax_t)w; - `bytebeat_contents` - ; + `bytebeat_contents`; } #define USAGE "render_bytebeat [-s | --silent] [-d | --debug]"