returning addresses of auto vars is *dangerous* (ask Vasilii! :-)
This was the reason why some people (especially SuSE10.0/gcc 4.0.2 users) couldn't see others in MP. I don't even know why I'm committing that. It's less important than taxi lights ...
This commit is contained in:
parent
d71a541837
commit
b716c6d15b
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ float
|
|||
XDR_decode_float ( const xdr_data_t & f_Val )
|
||||
{
|
||||
float* tmp;
|
||||
xdr_data_t dummy;
|
||||
static xdr_data_t dummy;
|
||||
|
||||
dummy = XDR_decode_int32 (f_Val);
|
||||
tmp = (float*) &dummy;
|
||||
|
@ -153,7 +153,7 @@ double
|
|||
XDR_decode_double ( const xdr_data2_t & d_Val )
|
||||
{
|
||||
double* tmp;
|
||||
xdr_data2_t dummy;
|
||||
static xdr_data2_t dummy;
|
||||
|
||||
dummy = XDR_decode_int64 (d_Val);
|
||||
tmp = (double*) &dummy;
|
||||
|
|
Loading…
Add table
Reference in a new issue