Function: dash--size+

dash--size+ is a byte-compiled function defined in dash.el.

Signature

(dash--size+ SIZE1 SIZE2)

Documentation

Return the sum of nonnegative fixnums SIZE1 and SIZE2.

Return most-positive-fixnum on overflow. This ensures the result is a valid size, particularly for allocating hash tables, even in the presence of bignum support.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun dash--size+ (size1 size2)
  "Return the sum of nonnegative fixnums SIZE1 and SIZE2.
Return `most-positive-fixnum' on overflow.  This ensures the
result is a valid size, particularly for allocating hash tables,
even in the presence of bignum support."
  (declare (side-effect-free t))
  (if (< size1 (- most-positive-fixnum size2))
      (+ size1 size2)
    most-positive-fixnum))