Imported Upstream version 24.2
[rrq/maintain_lilo.git] / src / edit.c
index 1fa45f2e3160b0ede5006bdc5b761f8264868731..ded9c38d0629f19bd8a640e0417a28a272bb53eb 100644 (file)
@@ -1,7 +1,7 @@
 /* edit.c  -  Bitmap file manipulation and editing
  * 
  * Copyright 2002-2004 John Coffman
- * Copyright 2009-2011 Joachim Wiedorn
+ * Copyright 2009-2015 Joachim Wiedorn
  * All rights reserved.
  * 
  * Licensed under the terms contained in the file 'COPYING'
@@ -193,7 +193,7 @@ static      union {
        } tm;
 static MENUTABLE *menu = &tm.mt;
 static BITMAPLILOHEADER *lh = (void*)(tm.buffer +
-                       ((long)&tm.mt.row - (long)&tm.bmlh.row));
+                       ((intptr_t)&tm.mt.row - (intptr_t)&tm.bmlh.row));
 
 /* a convenience definition */
 #define mn tm.mt