Use the same-type variable in a loop, as in loop condition

This fixes (most of the) warnings like this:
darktable/src/common/cache.c:382:17: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  for(int k=0; k<=cache->segment_mask; k++)
               ~^ ~~~~~~~~~~~~~~~~~~~
Update swedish
sync darktable-9999.ebuild with downstream
Fix wrong sign, found while reading code.

This was not a problem as both values iwidth and iheight were divided.
Minor code clean-up.
Fix display profiles on OSX ...

... and only update the profile when it changed
Merge remote-tracking branch 'upstream/master' into correct-forvariable-type
rawspeed: Nikon Coolpix P7100 blackpoint fix (thanks to nesthib)
ICC profile handling: catch certain mal-formatted profiles

some profiles claim to have color locus information for red, green and blue
base colors available, but in fact these are all set to zero (e.g. my Canon camera
profiles). We need to let these profiles be handled by lcms2 as we can't derive a valid
color matrix.
usermanual: more docs on module "unbreak input profile"
Olympus E-M5 enhanced matrix with help from Frederic Crozat
Update to rawspeed r514 (thanks Klaus)
usermanual: update on lighttable panel "history stack"
Merge branch 'master' of ssh://github.com/darktable-org/darktable
Merge branch 'lightroom'

* lightroom:
  Minor code clean-up.
  Fix wrong sign, found while reading code.
bug prevention : if a format has not specified a dimension, default to unlimited size instead of uninitialized value
Merge branch 'correct-forvariable-type' of git://github.com/LebedevRI/darktable
Checking if unsigned variable < 0 is pointless
Remove unneeded ;
usermanual: a first step towards a more uniform typesetting (still a long way to go)