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-Thread: 103376,ef2e6181b4b6365e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 12 Feb 2005 12:05:45 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Passing float values to C References: <1108227523.424858.160530@z14g2000cwz.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: <676dnaxFQuzk2JPfRVn-1Q@comcast.com> Date: Sat, 12 Feb 2005 12:05:45 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-SgobpKSk44ZnmfV588/fHVE5xwAfgLDkDW5d1EZMYrrIdCyansI3NKPdKLUI82hWZfbTioVotD5wiQP!Ynmhl0NI/sFKxA2NtLGluJnTfm0UqzGjoUzW0I3sCyKQMnRWsScGRRzNTvUmvA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.23 Xref: g2news1.google.com comp.lang.ada:8289 Date: 2005-02-12T12:05:45-06:00 List-Id: > void cprintfs(char *mesg, short *t1) { That says you are not passing a short float - you are passing a pointer (to a short float). > procedure cprintfs(Variable : Interfaces.C.Strings.chars_ptr; val > : Interfaces.C.short ); > pragma Import(C, cprintfs, "cprintfs"); That says you are passing a short float, val. Which is it?