C++ Warning only on 1 machine: format '%d' expects argument of type 'int'
<p>I am getting </p>

<pre><code>g++ -O3 cache-l1-line.cpp -o cache-l1-line -lrt
cache-l1-line.cpp: In function 'int main()':
cache-l1-line.cpp:33:58: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat]
</code></pre>

<p>On my schools sunfire server ... but not my my machine (Arch Linux). Why might that be. The line in question seems to be </p>

<pre><code>printf("%d, %1.2f \n", i * sizeof(int), totalTime/TIMES);
</code></pre>

<p>Where i is defined: </p>

<pre><code>for (int i = 4; i &lt;= MAX_STRIDE/sizeof(int); i*=2)  {
</code></pre>

<p>Whats the problem: <strong><a href="https://github.com/jiewmeng/cs3210-assign1/blob/85f80b274ebb46efd58b36d4180fd4b024a3ee6d/cache-l1-line.cpp" rel="nofollow">full source on GitHub</a></strong> (link to revision)</p>
