Fix a few warnings.

- Implicit cast to char from int.
- Implicit struct initialization.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  Adding color categories: #2
  improved the radial gradient radius code based on @marcosanson pull request
  updating screenshot
  renaming screenshot and updating readme
  moving the default image into the iOS group
  adding KGNoiseLinearGradientView and KGNoiseRadialGradientView closes #5
  adding Default-568h@2x.png
  Minor edit to readme.md
Add braces around rect subobject initialization.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' of https://github.com/kgn/KGNoise

* 'master' of https://github.com/kgn/KGNoise: (22 commits)
  Updating syntax highlighting
  removed enum as it is no longer needed
  Add explicit type cast and curly braces to appease compiler
  typedef KGLinearGradientDirection enum to avoid multiple definition
  switching to instancetype
  Rename "rgba" to "bitmapData"
  Set KGNoiseView's default contentMode to UIViewContentModeRedraw
  Add autoResizing support to the iOS example
  Updated readme: info about the image categories
  Added the image noise categories to the main KGNoise file so there is only one thing to add. Also implemented the image category for NSImage and added examples to the sample apps.
  Removed rand and srand fix #8
  static inline instead of duplicate method declaration
  rename the kImageSize const
  Fix a warning
  switch to NS_ENUM
  Updated readme to reflect direction property on linear gradient view
  Code to allow specification of gradient direction.
  Add 'static' to private function to avoid "Missing Function Prototypes" warnings.
  Added a mask to the image category
  Make sure both categories play nice with Retina displays
  ...

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>

Conflicts:
	KGNoise.m
Fix implicit loss of precision to be explicit.

- Squelch a warning.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Squelch implicit conversion as the type is OK according to the docs.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge pull request #16 from rastersize/squelch-implicit-conversion-warning

Squelch a few warnings