Hi,
I had a look at my std's lib code and the mico definitions:
- the std::size_t type is always defined as "typedef unsigned long size_t"
(obviously, if no other definition was already done)
- the mico's CORBA::ULong is defined (based on the compiling environment)
as "unsigned long" (if it is 4 bytes) or as "unsigned int" (if it is 4
bytes).
So, in a machine where the "unsigned long" is NOT 4 bytes number , we'll
obtain:
- std::size_t is an unsigned long (that can be a 64 bits number)
- CORBA::ULong is an unsigned int (that is a 32 bits number)
I think that this is the reason of that warning message: when the
vector::size_t is returned as a CORBA::ULong, it is casted from 64 bits to
32 bits.
Moreover, I think that the warning is not be so important because both the
numbers are "unsigned" and so you'll obtain an error only in case of a
vector with more than 2^32 values (not so usual).
Best regards
Giuseppe
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel