Re: My Bits are Flipping (or, "Why Can't I Be Negative?")

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Matt.

I tried that.  It no longer causes an error as an atom, but I'm still getting 
a huge positive number as opposed to a negative number, which is what I am 
expecting.

I also threw some printf()'s in my C++ code, and it shows those values as 
being negative. 


Travis.


On Friday 27 August 2004 08:21 am, Matt Lewis wrote:
>
>
> posted by: Matt Lewis <matthewwalkerlewis at yahoo.com>
>
> Travis Beaty wrote:
> > The problem is with the Euphoria function that is being used as a
> > callback. The prototype for the callback function is:
> >
> > -- MWidget is basically an atom.
> > function X(MWidget sender, integer x, integer y)
>
> <snip>
>
> > How can I get this value, coming in from the C++ code side, to be seen by
> > Euphoria as a negative number?  Or am I going to have to check the signed
> > bit manually?
>
> Try:
> }}}
<eucode>
> function X(MWidget sender, atom x, atom y)
> </eucode>
{{{

>
> Matt Lewis

-- 
Birds and bees have as much to do with the facts of life as black
nightgowns do with keeping warm.
		-- Hester Mundis, "Powermom"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu