[reSIProcate] an error?

david Butcher davidlbutcher at gmail.com
Sun Sep 4 00:11:24 CDT 2005


I don't see the sign error you reported (maybe someone fixed it already?), 
but am embarrassed to note the type error. The variable data6 should be of 
pointer type or an in place constructor should be used. Sure hope I didn't 
write it...

Also, depite the note in the wiki, C++ will auto-convert between numeric 
types when there is no loss in precision. There may be ambiguity in the face 
of auto-conversion in Data for some interfaces, but float can be used in 
place of double in the Data(double) constructor, for example.

david


On 9/3/05, John Draper <lists at webcrunchers.com> wrote:
> 
> In the WIKI, in this section:
> http://wiki.resiprocate.org/wiki/index.php?title=Using_Data
> 
> I believe I found an error...
> 
> Conversion from unsigned integer:
> unsigned int myUnsignedInt = 75;
> resip::Data data6 = new resip::Data(myUnsignedLong); // data6 contains 
> "-75"
> 
> is this right? shouldn't the "Data(myUnsignedLong)" be
> "Data(myUnsignedInt)"?
> and shouldn't data6 contains "-75" be "75"?
> 
> John
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050903/4e8cb965/attachment.htm>


More information about the resiprocate-devel mailing list