From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2e29004f01dc81fe,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-01 12:45:39 PST Message-ID: <3C7FE806.6080707@users.sf.net> From: Dave Poirier User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Long_Integer and Long_Integer, howto? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 01 Mar 2002 15:43:50 -0500 NNTP-Posting-Host: 65.94.42.23 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1015015429 65.94.42.23 (Fri, 01 Mar 2002 15:43:49 EST) NNTP-Posting-Date: Fri, 01 Mar 2002 15:43:49 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:20670 Date: 2002-03-01T15:43:50-05:00 List-Id: 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