浏览代码

libobs: Fix warning

Should have used size_t here instead of int.
jp9000 10 年之前
父节点
当前提交
3620dbb59f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-module.c

+ 1 - 1
libobs/obs-module.c

@@ -58,7 +58,7 @@ static int load_module_exports(struct obs_module *mod, const char *path)
 
 static inline char *get_module_name(const char *file)
 {
-	static int ext_len = 0;
+	static size_t ext_len = 0;
 	struct dstr name = {0};
 
 	if (ext_len == 0) {