octave-maintainers
[Top][All Lists]
Advanced

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

union structures for 64 bit octave


From: Clinton Chee
Subject: union structures for 64 bit octave
Date: Tue, 31 May 2005 01:59:54 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2


Hi All,

In the process of checking some 64 bit octave code, I found the use of
some union structures (see below). I've checked the code and don't think
the int in these union structures need to be changed to octave_idx_type.
Can someone confirm this?


in src/unwind-prot.cc

  union
    {
      bool *ptr_to_bool;
      int *ptr_to_int;
      void *gen_ptr;
      void **ptr_to_gen_ptr;
    };

  union
    {
      bool bool_value;
      int int_value;
      const std::string *str_value;
      void *gen_ptr_value;
    };


in src/ov.h

  union
    {
      octave_value *rep;      // The real representation.
      int count;              // A reference count.
    };


Thanks
Clinton


-- 


----------------------------------------------------------------------------
Clinton Chee
Computational Scientist
High Performance Computing Unit
Room 2075, Red Centre
University of New South Wales
Australia 2035
chee at parallel stop hpc stop unsw stop edu stop au
Tel: 61 2 9385 6915
----------------------------------------------------------------------------



reply via email to

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