Browse Source

fix:修复报错,多了}

Dozingfiretruck 3 năm trước cách đây
mục cha
commit
071b33e96c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/network/libsntp/luat_sntp.c

+ 1 - 1
components/network/libsntp/luat_sntp.c

@@ -243,7 +243,7 @@ int l_sntp_get(lua_State *L){
 	}else if(lua_istable(L, 1)){
         size_t count = lua_rawlen(L, 1);
         if (count > SNTP_SERVER_COUNT){
-            count = SNTP_SERVER_COUNT);
+            count = SNTP_SERVER_COUNT;
         }
 		for (size_t i = 0; i <= count; i++){
 			lua_geti(L, 1, i+1);