瀏覽代碼

style: add type conversion for getcwd

greatbridf 2 年之前
父節點
當前提交
36654c55e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gblibc/src/unistd.c

+ 1 - 1
gblibc/src/unistd.c

@@ -40,5 +40,5 @@ int chdir(const char* path)
 
 char* getcwd(char* buf, size_t bufsize)
 {
-    return syscall2(SYS_getcwd, (uint32_t)buf, bufsize);
+    return (char*)syscall2(SYS_getcwd, (uint32_t)buf, bufsize);
 }