Weirdness

Herr Witten lingwitt at bellsouth.net
Tue Feb 24 23:48:57 CET 2004


Bear with me, because I am trying to understand this low-level 
manipulation with which I an not familiar.

Why does this cause an infinite loop when the line is uncommented:

mpf_t array[4];
mpf_init(array[0]);
mpf_init(array[1]);
mpf_init(array[2]);
mpf_init(array[3]);
mpf_init(array[4]);

//mpf_ptr p = *array;

for (int index = 0; index < 5; index++)
{
     mpf_set_d(array[index], 100);
}

mpf_out_str(stdout, 10, 10, array[4]);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1121 bytes
Desc: not available
Url : /list-archives/gmp-discuss/attachments/20040224/24176724/attachment.bin


More information about the gmp-discuss mailing list