comp.lang.ada
 help / color / mirror / Atom feed
From: Dave Poirier <instinc@users.sf.net>
Subject: Long_Integer and Long_Integer, howto?
Date: Fri, 01 Mar 2002 15:43:50 -0500
Date: 2002-03-01T15:43:50-05:00	[thread overview]
Message-ID: <3C7FE806.6080707@users.sf.net> (raw)

I have a Long_Integer that i want to bitwise-AND against another value, 
I tried doing:

procedure log is
   A: Long_Integer;
   B: Long_Integer;
begin
   A := 16#FFFFFFF#;
   B := 16#8A9BCAB#;
   A := A and B;
end log;

-----

but I always get GNAT complaining:

gnatgcc -c log.adb
log.adb:7:10: invalid operand types for operator "and"
log.adb:7:10: left operand has type "Standard.long_integer"
log.adb:7:10: right operand has type "Standard.long_integer"
gnatmake: "log.adb" compilation error

How can I do this operation then?  I get a similar error when using 'mod' :/

Thanks,
EKS - Dave Poirier




                 reply	other threads:[~2002-03-01 20:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox