comp.lang.ada
 help / color / mirror / Atom feed
* Long_Integer and Long_Integer, howto?
@ 2002-03-01 20:43 Dave Poirier
  0 siblings, 0 replies; only message in thread
From: Dave Poirier @ 2002-03-01 20:43 UTC (permalink / 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-01 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-01 20:43 Long_Integer and Long_Integer, howto? Dave Poirier

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