[all-commits] [llvm/llvm-project] ea70e6: [libc] Fix compilation on 32-bit systems

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Wed Aug 16 05:53:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea70e6f9a9f0b97b8693292cb3976a0e72234418
      https://github.com/llvm/llvm-project/commit/ea70e6f9a9f0b97b8693292cb3976a0e72234418
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M libc/src/unistd/linux/lseek.cpp

  Log Message:
  -----------
  [libc] Fix compilation on 32-bit systems

This fixes the following compilation error: no known conversion from 'off_t *'
(aka 'long long *') to 'long' for 5th argument.

Since pointers are 32-bit long anyway, casting it to long shouldn't be a
problem. Tested on rv32.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D157792




More information about the All-commits mailing list