> 18 дек. 2014 г., в 11:18, Dmitry Yemanov <[email protected]> написал(а): > > 18.12.2014 11:04, Alexey Pavlov wrote: >> >> 2014-12-18 10:53 GMT+03:00 Dmitry Yemanov <[email protected] >> <mailto:[email protected]>>: >> >> 18.12.2014 10:47, Alexey Pavlov wrote: >> >>> -*(ISC_ULONG *)arg_vector[-1].a_address = (ISC_ULONG)p; >>> - >>> +*(uintptr_t *)arg_vector[-1].a_address = (uintptr_t)p; >> >> So far our practice is to favor FB-specific typedefs instead of system >> ones. U_IPTR should be used here instead of uintptr_t. >> >> Strange but it give me error with U_IPTR >> >> C:/git/mingw/mingw-w64-firebird-git/src/firebird/src/gpre/languages/fbrmclib.cpp: >> In function 'int rmc_status_address(char*, int, argument_entry*, int)': >> >> C:/git/mingw/mingw-w64-firebird-git/src/firebird/src/gpre/languages/fbrmclib.cpp:1398:49: >> error: cast from 'ISC_STATUS* {aka long long int*}' to 'ISC_ULONG {aka >> long unsigned int}' loses precision [-fpermissive] >> >> *(U_IPTR *)arg_vector[-1].a_address = (U_IPTR)p; > > Really weird, as fb_types.h defines it as: > > typedef uintptr_t U_IPTR;
Next patch works for me.
firebird-cast.diff
Description: Binary data
> > > Dmitry > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > Firebird-Devel mailing list, web interface at > https://lists.sourceforge.net/lists/listinfo/firebird-devel
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
