Prechádzať zdrojové kódy

fix: 修正luat_errdump_save_file的编译警告

Wendal Chen 1 rok pred
rodič
commit
c1f80cc9d7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      luat/modules/luat_main.c

+ 1 - 1
luat/modules/luat_main.c

@@ -140,7 +140,7 @@ static int report (lua_State *L, int status) {
     // LLOGD("MSG2 ==> %s %d", msg, len);
     // l_message("LUAT", msg);
 #ifdef LUAT_USE_ERRDUMP
-    luat_errdump_save_file(msg, strlen(msg));
+    luat_errdump_save_file((const uint8_t *)msg, strlen(msg));
 #endif
     lua_pop(L, 1);  /* remove message */
   }