[all-commits] [llvm/llvm-project] eaa4f0: [libc++] Use numeric_limits instead of raw INT_MAX

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Nov 18 08:32:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eaa4f041f7864d9612ac2167cbe8925b2ea017d1
      https://github.com/llvm/llvm-project/commit/eaa4f041f7864d9612ac2167cbe8925b2ea017d1
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M libcxx/include/__random/discard_block_engine.h
    M libcxx/include/random
    M libcxx/test/libcxx/transitive_includes/cxx2b.csv

  Log Message:
  -----------
  [libc++] Use numeric_limits instead of raw INT_MAX

This allows discard_block_engine to work on platforms that might not
provide a full <limits.h> header.

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




More information about the All-commits mailing list