[pygccxml-commit] SF.net SVN: pygccxml:[1460] pyplusplus_dev/unittests/data
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2008-11-28 17:48:10
|
Revision: 1460 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1460&view=rev Author: roman_yakovenko Date: 2008-11-28 17:48:05 +0000 (Fri, 28 Nov 2008) Log Message: ----------- fix for 64Bit issues. Thanks to Carsten for providing the patch Modified Paths: -------------- pyplusplus_dev/unittests/data/call_policies_to_be_exported.hpp pyplusplus_dev/unittests/data/deepcopy_to_be_exported.hpp Modified: pyplusplus_dev/unittests/data/call_policies_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/call_policies_to_be_exported.hpp 2008-11-27 20:38:51 UTC (rev 1459) +++ pyplusplus_dev/unittests/data/call_policies_to_be_exported.hpp 2008-11-28 17:48:05 UTC (rev 1460) @@ -11,7 +11,7 @@ namespace call_policies{ struct dummy{ - int id() { return int( this ); } + size_t id() { return (size_t)( this ); } }; namespace return_arg{ @@ -87,7 +87,7 @@ }; struct return_range_image_t{ - return_range_image_t() + return_range_image_t() : raw_data( "" ) { raw_data += '1'; @@ -96,17 +96,17 @@ } ~return_range_image_t(){} - + std::string raw_data; - + const char* get_raw_data_const() const{ return raw_data.c_str(); } - + char* get_raw_data(){ return &raw_data.at(0); } - + return_range_image_t* create_images(){ return_range_image_t* images = new return_range_image_t[3]; return_range_image_t x; @@ -122,6 +122,6 @@ } }; -} +} #endif//__call_policies_to_be_exported_hpp__ Modified: pyplusplus_dev/unittests/data/deepcopy_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/deepcopy_to_be_exported.hpp 2008-11-27 20:38:51 UTC (rev 1459) +++ pyplusplus_dev/unittests/data/deepcopy_to_be_exported.hpp 2008-11-28 17:48:05 UTC (rev 1460) @@ -12,9 +12,9 @@ struct item_t{ item_t(){ - id = reinterpret_cast< int >( this ); + id = (size_t)( this ); } - int id; + size_t id; }; typedef std::vector< item_t > items_t; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |