[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-dev] Re: JPEGs offset
From: |
Benjamin Wolsey |
Subject: |
Re: [Gnash-dev] Re: JPEGs offset |
Date: |
Thu, 16 Oct 2008 20:52:06 +0200 |
> This solution seems acceptable to me, but I'm curious if anyone can
> shed some light on the floating point conversion:
>
> return static_cast<boost::int32_t>(static_cast<boost::uint32_t>(a * 20));
>
> used in PIXELS_TO_TWIPS. Is there a compiler flag or something that
> allows negative floating point numbers to be converted to a non-zero
> unsigned int that I'm missing for my cross compile?
>
It's undefined behaviour, so there's nothing you can do to be sure on
any platform. I think we should be using the safe conversion all the
time.
bwy
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil