fix: pass pointer to reducer in test_dispatch
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
static AppState g_state;
|
||||
|
||||
static void test_dispatch(Action action) {
|
||||
g_state = reducer(g_state, action);
|
||||
reducer(&g_state, action);
|
||||
}
|
||||
|
||||
static void test_cli_parse(void) {
|
||||
|
||||
Reference in New Issue
Block a user