[libc-commits] [libc] [libc] Change __llvm_libc_stdio_seek to match cookie_io_functions_t (PR #225632)

Victor Campos via libc-commits libc-commits at lists.llvm.org
Fri Sep 25 02:32:09 PDT 2026


================
@@ -26,8 +26,8 @@ LLVM_LIBC_FUNCTION(int, fseek, (::FILE * stream, long offset, int whence)) {
     libc_errno = EINVAL;
     return -1;
   }
-  off_t result =
-      __llvm_libc_stdio_seek(stream, static_cast<off_t>(offset), whence);
+  int result = __llvm_libc_stdio_seek(
+      stream, reinterpret_cast<off_t *>(&offset), whence);
----------------
vhscampos wrote:

This issue is still present.

https://github.com/llvm/llvm-project/pull/225632


More information about the libc-commits mailing list