From f0d4c3505fc539d001542fa64843b8d8687ca446 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 15 Nov 2005 22:02:44 +0000 Subject: [PATCH] Don't cast to int to subtract pointers. --- src/rec/mbboDirectRecord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rec/mbboDirectRecord.c b/src/rec/mbboDirectRecord.c index 2d11da2f1..994ff801d 100644 --- a/src/rec/mbboDirectRecord.c +++ b/src/rec/mbboDirectRecord.c @@ -251,7 +251,7 @@ static long special(paddr,after) if (pmbboDirect->omsl == menuOmslclosed_loop) return(0); - offset = 1 << (((int)paddr->pfield) - ((int) &(pmbboDirect->b0))); + offset = 1 << (((unsigned char *)paddr->pfield) - &(pmbboDirect->b0)); if (*((char *)paddr->pfield)) { /* set field */