瀏覽代碼

fix: 修正luat_errdump_save_file的编译警告

Wendal Chen 1 年之前
父節點
當前提交
c1f80cc9d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 */
   }