This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Jun 18, 2009 at 10:51:01AM -0700, Yann E. MORIN wrote: > On Thursday 18 June 2009 16:16:39 Leonitis wrote: > > I successfully built a cross-compiler for the ARM with crosstool-ng and > > everything works fine. However, when I want to get user float input with > > scanf(), it misses the negative sign, even though it works fine with > > integers. For example, 3.5 and -3.5 are both read in as 3.5. If he is used to the way x86 compilers/cpus handle signed data storage, maybe he is doing a questionable cast someplace. There are signed/unsigned casts that work for x86 that do not work for, say, ppc and arm. -- Nye Liu nliu@mrv.com (818) 772-6235x248 (818) 772-0576 fax "Who would be stupid enough to quote a fictitious character?" -- Don Quixote -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |