X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=edbf88a9c63accf99826fb0c24a576568f8a8b5c;hb=8c92ca4a29a3943b47ec931f18e77a302465aaed;hp=e7da54f1539cee48a9b6baa437d5b39e912cbb29;hpb=22f5f69672b91d3538366660948c9e40a9c67f02;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index e7da54f..edbf88a 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.77 2003/09/25 15:14:41 panne Exp $ + * $Id: RtsStartup.c,v 1.78 2003/09/26 12:12:35 panne Exp $ * * (c) The GHC Team, 1998-2002 * @@ -81,14 +81,14 @@ static void *saved_termios[3] = {NULL,NULL,NULL}; void* __hscore_get_saved_termios(int fd) { - return (0 <= fd && fd < sizeof(saved_termios) / sizeof(*saved_termios)) ? + return (0 <= fd && fd < (int)(sizeof(saved_termios) / sizeof(*saved_termios))) ? saved_termios[fd] : NULL; } void __hscore_set_saved_termios(int fd, void* ts) { - if (0 <= fd && fd < sizeof(saved_termios) / sizeof(*saved_termios)) { + if (0 <= fd && fd < (int)(sizeof(saved_termios) / sizeof(*saved_termios))) { saved_termios[fd] = ts; } }