On Wed, 2012-03-14 at 17:44 +0200, Rémi Denis-Courmont wrote: > d_length is rounded to an integer. Ha ok. Then I could do : if(d_length-0.5 > INT64_MAX) *pi64 = INT64_MAX; to be safe ?