Re: [PATCH 1/2] entity: Use g_ascii_strtoll to parse int64 strings

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

 



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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux