@@ -512,23 +512,23 @@ bool ps_visit_function_call_random(ps_interpreter *interpreter, ps_interpreter_m
512512 VISIT_END ("OK" )
513513}
514514
515- bool ps_visit_function_call_low_high (ps_interpreter * interpreter , ps_interpreter_mode mode , ps_symbol * symbol )
515+ bool ps_visit_function_call_low_high (ps_interpreter * interpreter , ps_interpreter_mode mode , ps_symbol * * symbol )
516516{
517- VISIT_BEGIN ("FUNCTION_CALL" , "LOW_HIGH" );
517+ VISIT_BEGIN ("FUNCTION_CALL" , "LOW_HIGH" )
518518
519519 // Low and High functions have one "symbolic" argument, i.e. Low(Days) or High(Day)
520- EXPECT_TOKEN (PS_TOKEN_LEFT_PARENTHESIS );
520+ EXPECT_TOKEN (PS_TOKEN_LEFT_PARENTHESIS )
521521 READ_NEXT_TOKEN
522522 if (lexer -> current_token .type != PS_TOKEN_IDENTIFIER && lexer -> current_token .type != PS_TOKEN_INTEGER &&
523523 lexer -> current_token .type != PS_TOKEN_UNSIGNED && lexer -> current_token .type != PS_TOKEN_CHAR )
524524 RETURN_ERROR (PS_ERROR_UNEXPECTED_TOKEN )
525525 ps_identifier identifier = {0 };
526526 COPY_IDENTIFIER (identifier )
527- symbol = ps_interpreter_find_symbol (interpreter , identifier , false);
528- if (symbol == NULL )
529- RETURN_ERROR (PS_ERROR_SYMBOL_NOT_FOUND );
527+ * symbol = ps_interpreter_find_symbol (interpreter , identifier , false);
528+ if (* symbol == NULL )
529+ RETURN_ERROR (PS_ERROR_SYMBOL_NOT_FOUND )
530530 READ_NEXT_TOKEN
531- EXPECT_TOKEN (PS_TOKEN_RIGHT_PARENTHESIS );
531+ EXPECT_TOKEN (PS_TOKEN_RIGHT_PARENTHESIS )
532532 READ_NEXT_TOKEN
533533
534534 VISIT_END ("OK ")
@@ -591,7 +591,7 @@ bool ps_visit_function_call_system(ps_interpreter *interpreter, ps_interpreter_m
591591 else if (function == & ps_system_function_low || function == & ps_system_function_high )
592592 {
593593 arg_count = -1 ;
594- if (!ps_visit_function_call_low_high (interpreter , mode , symbol ))
594+ if (!ps_visit_function_call_low_high (interpreter , mode , & symbol ))
595595 TRACE_ERROR ("LOW_HIGH" )
596596 }
597597 else if (function == & ps_system_function_power )
0 commit comments