Reply to post: Re: 2038

Y2K quick-fix crick? 1920s come roaring back after mystery blip at UK's vehicle licensing agency

Paul Crawford Silver badge

Re: 2038

No it would not!

Try it - write a 32-bit program, cast -1 to unsigned and then compare it to -1 and do the same with time_t. You will find they are the same.

The only catch is if someone has tested a time_t data type along the lines of if(t < 0) instead of if(t == -1) for error handling.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon


Biting the hand that feeds IT © 1998–2020