[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCH 1/2] entity: Use g_ascii_strtoll to parse int64 strings



On Thu, Nov 22, 2012 at 4:32 PM, Christophe Fergeau <cfergeau redhat com> wrote:
> osinfo_entity_get_param_value_int64 uses g_ascii_strod to parse
> strings to int64, better to use g_ascii_strtoll which is there
> for that purpose.

ACK.

> ---
>
> Maybe this was done on purpose because we have floating point values which
> we want to interpret as int64

I don't think so. We don't have any floating point numbers in xml that
we parse as numbers and not strings AFAICT.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]