title: Assertion failure with remquo function
body: <p>The piece of code I am working on has the aim to create a spreadsheet of 104 columns and lines. Columns header as you can guess increments the alphabet. After the Z letter, you have the AA through AZ and so on.</p>
  
  <p>For now I testing the fact that after the Z the code loops from A through Z until it fills the 104 columns headers.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>#include "spreadhall.h"
  #include &lt;cmath&gt;
  
  SpreadWnd::SpreadWnd()
  {
      formulaInput = new QLineEdit;
  
      table = new QTableWidget;
      table-&gt;setRowCount(104); // int row = table-&gt;rowCount();
      table-&gt;setColumnCount(104); int col = table-&gt;columnCount();
      table-&gt;setSizeAdjustPolicy(QTableWidget::AdjustToContents);
  
      QString s[26] = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
                       "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
  
      QString str = "";
      for(int i = 0; i &lt; col; i++)
      {
          //int r = (i + 1) % 26;
          if(i &gt; 25)
          {
              int q;
              int r = remquo(i, 25, &amp;q);
              if(r == 0) r = 25;
              str = s[r - 1];
          }
          else
              str = s[i];
          table-&gt;setHorizontalHeaderItem(i, new QTableWidgetItem(str));
      }
  
      vLay = new QVBoxLayout;
      vLay-&gt;addWidget(formulaInput);
      vLay-&gt;addWidget(table);
  
      this-&gt;setLayout(vLay);
  }
  </code></pre>
  
  <p>The <strong>For loop</strong> is the piece of code that writes the headers. When I use the code in comment at the first line in the <strong>For loop</strong>, everything works fine, the headers loop back from A to Z. But when I use the <strong>remquo</strong> function, I get an assertion failure at runtime. I don't understand why.</p>
  
  <p>Is someone has any idea of what is wrong?</p>
  
  <p><strong>N.B:</strong></p>
  
  <p>I am not using the remainder function because I will need the quotient to design the AA after the Z and so on.</p>
  
  <p>I am using Qt5.3 with MSVC2013 on a 64 bits Acer laptop on Win8 platform.</p>
  
  <p>Thanks!</p>