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

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Thu Nov 22 16:43:07 UTC 2012


On Thu, Nov 22, 2012 at 4:32 PM, Christophe Fergeau <cfergeau at 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




More information about the virt-tools-list mailing list