[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
Thu Sep 24 01:21:31 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);
if (result < 0) {
libc_errno = static_cast<int>(-result);
----------------
vhscampos wrote:
This static_cast isn't needed anymore
https://github.com/llvm/llvm-project/pull/225632
More information about the libc-commits
mailing list