title: Buffer unpacking not optimized away , However only using 1d Numpy array
body: <p>I got a problem with an inline function in cython</p>
  
  <pre><code>cdef inline int binary_search(np.ndarray[np.float_t,ndim=1] cumsum, double rdn):
    cdef int mi=0,ma=len(cumsum)-1,pos 
    while True:
      if ( mi &gt; ma):
        break
      pos = (mi+ma) / 2
      if (rdn &lt;= cumsum[pos] ):
        ma=pos-1
      else:
        mi=pos+1
    return mi-1  
  </code></pre>
  
  <p>However, I get the following problem:  Buffer unpacking not optimized away.</p>
  
  <p>I heard that this is an issue when dealing with multidimensional arrays, but this is not the case for me.</p>
  
  <p>Thanks for any help</p>