Re: git-rebase (1.5.0.6) errors
From: Paolo Teti <hidden>
Date: 2016-06-15 22:43:11
2007/5/18, David Kastrup [off-list ref]:
"Paolo Teti" [off-list ref] writes:quoted
2007/5/18, Ilpo Järvinen [off-list ref]:quoted
...sizeof(size_t) == sizeof(int) should hold...what I have reported is not necessarily the cause of your error. Yes BUT size_t is UNSIGNED and ssize_t is SIGNED. The problem is that We store a signed return value into a unsigned variable. So the check against -1 has no sense.When comparing signed with unsigned types, the signed values are first converted to unsigned, then possibly zero-extended. So (unsigned)-1 == (int)-1 but (unsigned long)-1 == (long)-1 only when sizeof(long)==size(int)quoted
and please note that also sizeof(int) == sizeof(unsigned int), but -1 is a signed int !!So?
Stupid me.. OK is == -1 and not < 0.. Probably today I'm drunk without drink .. Enjoy