ceph master - src/common/options.cc - size_t / uint64_t incompatibility on ARM 32bit

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

 



Hi List / James,


In the Ceph master (and also Ceph 14.2.1), file: src/common/options.cc, line # 192:

    Option::size_t sz{strict_iecstrtoll(val.c_str(), error_message)};


On ARM 32-bit, compiling with CLang 7.1.0, compilation fails hard at this line.


The reason is because strict_iecstrtoll() returns an uint64_t value, which has a different size that size_t on this architecture.

I think, since the intention is to convert a value in string format back to it's native type, that the strict_iecstrtoll() should return a size_t type, not an uint64_t type. What does everyone else think?


Thanks!

- Dyweni
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux