diff --git a/ChangeLog b/ChangeLog index 616858f..ba9739e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-28 Riccardo Mottola + + * Framework/PCFileManager.m: + Correct cast according to ctypes caveats. + 2011-04-07 Riccardo Mottola * Headers/ProjectCenter/PCDefines.h diff --git a/Framework/PCFileManager.m b/Framework/PCFileManager.m index 61f0169..e9324f5 100644 --- a/Framework/PCFileManager.m +++ b/Framework/PCFileManager.m @@ -1,7 +1,7 @@ /* GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html - Copyright (C) 2000-2010 Free Software Foundation + Copyright (C) 2000-2011 Free Software Foundation Authors: Philippe C.D. Robert Serg Stoyan @@ -627,7 +627,7 @@ static PCFileManager *_mgr = nil; buf = [data bytes]; for (i = printable = 0, n = [data length]; i < n; i++) { - if (isprint(buf[i]) || isspace(buf[i])) + if (isprint((int)(unsigned char)buf[i]) || isspace((int)(unsigned char)buf[i])) { printable++; }