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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,d92604885f078c76 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,d92604885f078c76 X-Google-Attributes: gid103376,public From: "Rick Stikkers" Subject: Re: Passing Floats Ada->C Date: 1998/07/27 Message-ID: <6pjbha$m9j$1@mentor.telis.org>#1/1 X-Deja-AN: 375514860 References: <35BCA22D.DB070D0F@email.mot.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: TELIS Newsgroups: comp.lang.ada,comp.lang.c++ Date: 1998-07-27T00:00:00+00:00 List-Id: I had that problem one time with integers. The problem I had there was that I was trying to pass a variable that was inside a structure that I had used the for ... use at ... clause on (a favorite among you boys at Motorola). The problem was that the variable I was trying to pass was not on an even word boundary, so it did not like it. I don't remember if it gave me a runtime error or just blew up. I know it compiled fine, though. The workaround I ended up with was I declared another integer (temp) inside the procedure I was working in, set temp equal to the variable I was trying to pass, then passed the temp variable to the C procedure. It seems to work fine that way. Rick Stikkers Dennis Miller wrote in message <35BCA22D.DB070D0F@email.mot.com>... >Has anyone encountered any difficulties in sending float values from Ada >to C? > >-- >Dennis Miller, Software Engineer >C4I Applications Section >Market Solutions Division >Motorola SSG > >"If a man says something and a woman > isn't around, is he still wrong?" > >---Remove xxx from e-mail address to reply--- > >