1. using MAXINT

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

new topic     » topic index » view message » categorize

2. Re: using MAXINT

I suspect you are running it on 32 bits.

Try this:

integer hh = iff(machine_bits()=32?#3FFFFFFF:#3FFFFFFFFFFFFFFF) 
new topic     » goto parent     » topic index » view message » categorize

3. Re: using MAXINT

yes you are wright. i changed to 32 bit because of the trace matter and forgot about it.

i am sorry.

richard

new topic     » goto parent     » topic index » view message » categorize

4. Re: using MAXINT

begin said...

i changed to 32 bit because of the trace matter and forgot about it.

yeah, that still needs to be resolved.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu