bugGNU Octave - Bugs: bug #67583, Parsing uint64 into an oct...

 
 

bug #67583: Parsing uint64 into an oct function truncates its value

Submitter:  Andreas Bertsatos <pr0m1th3as>
Submitted:  Mon 06 Oct 2025 03:09:51 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 06 Oct 2025 03:09:51 PM UTC, original submission:  

This bug report relates to the discussion at discourse.

Having the following assignment in C++ code

uint64_t base = args(0).uint64_value ();

results in truncating the input value in certain cases, because the conversion from octave_value to uint64_t goes through a double, as Markus pointed out.

Andreas Bertsatos <pr0m1th3as>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by pr0m1th3as (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code