title: c warning message: conversion of nonzero integer to pointer
body: <p>I have the following code and am receiving a "conversion of nonzero integer to pointer" warning by the compiler on the if statement.</p>
  
  <p>I have tried numerous combinations to remove the warning, including wrapping the right hand side of my condition in double quotes, eg. "1", which makes the warning go away, but then the condition does not work.</p>
  
  <pre><code>if ((unsigned char*)buffer[8] == '1' &amp;&amp; (unsigned char*)buffer[9] == '1')
  {
        unsigned char colorPtr = (unsigned char*)&amp;buffer[10];
        singleColor(CDCInstance, lightCount, colorPtr, 6);
  }
  </code></pre>
  
  <p>buffer is of the type void * </p>