[originally from svn r8806]
/* Count the pencil marks required. */
for (i = 1, npencil = 0; i <= w; i++)
- if (tile & (1 << (i + DF_PENCIL_SHIFT)))
+ if (tile & (1L << (i + DF_PENCIL_SHIFT)))
npencil++;
if (npencil) {
* Now actually draw the pencil marks.
*/
for (i = 1, j = 0; i <= w; i++)
- if (tile & (1 << (i + DF_PENCIL_SHIFT))) {
+ if (tile & (1L << (i + DF_PENCIL_SHIFT))) {
int dx = j % pw, dy = j / pw;
str[1] = '\0';