Explorar o código

add a default parameter to function call.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1187 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong %!s(int64=14) %!d(string=hai) anos
pai
achega
f1a255b4be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/finsh/finsh_ops.c

+ 1 - 1
components/finsh/finsh_ops.c

@@ -451,7 +451,7 @@ void OP_call()
 	switch (parameters)
 	{
 	case 0:
-		r = f();
+		r = f(0);
 		break;
 
 	case 1: