< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] an error?


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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel