ceil(1) == -1

Hi,

I was debugging my code on CPU using CUDA 2.3 and got a weird result in gdb by writing

p ceil(1)

returns -1.

What is going on?