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

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

[Octave-bug-tracker] [bug #50256] Wrong data type for rand ('twister')


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #50256] Wrong data type for rand ('twister')
Date: Fri, 9 Mar 2018 13:46:48 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #50256 (project octave):

I don't know of a good way around the reinterpret cast unless you are OK with
making a copy or defining oct_get_state to work on an array of octave_int32
objects instead of uint32_t.  But the cast should be OK because the data for
octave_int32 is a single uint32_t object only, and that should not change.  We
only define this data type so that we can enforce Matlab integer semantics. 
Is there a better way to handle that?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50256>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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