diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 13:50:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 13:50:59 -0400 |
| commit | 0a3b3bf9ebbe6c5867cc44ffe19f9f85ce9ccac9 (patch) | |
| tree | 13be04f41e73a8c2e5f896ab9bb8498679f471c6 /builtins | |
| parent | ac507da537bf81160a482ccaa9f8b4287ce06ede (diff) | |
Fix const correctness
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/functions.c | 2 | ||||
| -rw-r--r-- | builtins/functions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/builtins/functions.c b/builtins/functions.c index 18a8d3bd..27bb06f8 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -200,7 +200,7 @@ public void start_test(const char *filename, int64_t start, int64_t end) ++TEST_DEPTH; } -public void end_test(void *expr, const TypeInfo *type, const char *expected, const char *filename, int64_t start, int64_t end) +public void end_test(const void *expr, const TypeInfo *type, const char *expected, const char *filename, int64_t start, int64_t end) { (void)filename; (void)start; diff --git a/builtins/functions.h b/builtins/functions.h index 70c5194b..263255f4 100644 --- a/builtins/functions.h +++ b/builtins/functions.h @@ -17,7 +17,7 @@ void fail(const char *fmt, ...); void fail_source(const char *filename, int64_t start, int64_t end, const char *fmt, ...); Text_t builtin_last_err(); void start_test(const char *filename, int64_t start, int64_t end); -void end_test(void *expr, const TypeInfo *type, const char *expected, const char *filename, int64_t start, int64_t end); +void end_test(const void *expr, const TypeInfo *type, const char *expected, const char *filename, int64_t start, int64_t end); #define test(expr, typeinfo, expected, start, end) {\ start_test(__SOURCE_FILE__, start, end); \ end_test((__typeof__(expr)[1]){expr}, typeinfo, expected, __SOURCE_FILE__, start, end); } |
