JuliaLang/julia — comment on commit fce7c3c291bc505172de65d6bba44cce4ef29b5a
File:  line 0
By StefanKarpinski:

Hmm. That's a bit of an issue. Maybe div and fld should preserve the type of their first argument even though signed / unsigned is in principle signed. They can keep the same bit pattern so that if you cast to a signed type (e.g. by assigning into an array), you get the right answer. I that case, however, we may want to do the same thing with mod. Rem already uses the signedness (and sign) of x, so that needn't change.