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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news4.google.com!news.glorb.com!nntp-server.pubsub.com!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-ID: <1603285.ASpjRijX0L@linux1.krischik.com> From: Martin Krischik Subject: Re: Passing float values to C Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Sat, 12 Feb 2005 20:59:53 +0100 References: <1108227523.424858.160530@z14g2000cwz.googlegroups.com> <676dnaxFQuzk2JPfRVn-1Q@comcast.com> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.148.166 (83.169.148.166) NNTP-Posting-Date: Sat, 12 Feb 2005 21:00:09 +0100 X-Trace: 0fcae420e6049f60c310309523 Xref: g2news1.google.com comp.lang.ada:8297 Date: 2005-02-12T20:59:53+01:00 List-Id: Pascal Obry wrote: > > tmoran@acm.org writes: > >> > 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. > > No, Interfaces.C.short is a short *int*. Which is OK - the C type was also "short int". Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com