1. using MAXINT
- Posted by begin Jun 14, 2018
- 1139 views
hi,
this might be very stupid - but i don't understand a phix messsage:
integer hh = #3FFFFFFFFFFFFFFF or integer hh = #3FFFFFFFFFFFFFFF-1
gives me an error message
integer hh = #3FFFFFFFFFFFFFFF ^ type error (storing float in integer) integer hh = #3FFFFFFFFFFFFFFF-1 type check failure, hh is 4.611686019e+18
how can i assign a MAXINT to an integer?
thank you in advance richard
2. Re: using MAXINT
- Posted by petelomax Jun 14, 2018
- 1127 views
I suspect you are running it on 32 bits.
Try this:
integer hh = iff(machine_bits()=32?#3FFFFFFF:#3FFFFFFFFFFFFFFF)
3. Re: using MAXINT
- Posted by begin Jun 14, 2018
- 1155 views
yes you are wright. i changed to 32 bit because of the trace matter and forgot about it.
i am sorry.
richard
4. Re: using MAXINT
- Posted by petelomax Jun 14, 2018
- 1115 views
begin said...
i changed to 32 bit because of the trace matter and forgot about it.
yeah, that still needs to be resolved.