octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in


From: Markus Mützel
Subject: [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM
Date: Mon, 17 Jul 2023 02:29:08 -0400 (EDT)

Follow-up Comment #3, patch #10362 (project octave):

In case this depends on whether an integer is representable as a double
precision number, 2^53 might not be the universal upper limit. IIUC, it can be
larger. E.g., if the base is a multiple of 2^N and the increment is 2^N, the
integers can be represented correctly up to 2^(53+N).

Anyway, the "easy way out" would probably be to just use `octave_idx_type`
here. Afaict, that is `int64_t`. That should be `long` on Linux or `long long`
on Windows.
Imho, correct behavior might be more important than performance in this case.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10362>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]