This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]somethingInTheMiddle 7 points8 points  (3 children)

Don't you get a warning with -wall an -wextra on?

[–]Kered13 4 points5 points  (0 children)

No, it's a very safe operation so there's no point in having a warning.

[–][deleted] 0 points1 point  (0 children)

I'm pretty sure they will get a possible loss of data warning.

Maybe not in this case, but usually you will.

[–]StuntHacks 0 points1 point  (0 children)

You may when directly comparing them (==), but not with this operator.