Cast to integer because function it seems really might not be

paranoia_mode_t but seems augmented by to additional values below 0. Ugh.
This commit is contained in:
rocky
2008-01-19 02:08:27 +00:00
parent 3dc7116859
commit 599b88fd14

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004, 2005, 2006, 2007 Rocky Bernstein <rocky@gnu.org> * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rocky Bernstein <rocky@gnu.org>
* (C) 1998 Monty <xiphmont@mit.edu> * (C) 1998 Monty <xiphmont@mit.edu>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@@ -368,10 +368,11 @@ callback(long int inpos, paranoia_cb_mode_t function)
static int stimeout=0; static int stimeout=0;
const char *smilie="= :-)"; const char *smilie="= :-)";
if(callscript) if (callscript)
fprintf(stderr,"##: %d [%s] @ %ld\n", fprintf(stderr, "##: %d [%s] @ %ld\n",
function,(function>=-2&&function<=13?callback_strings[function+2]: function, ((int) function >= -2 && (int) function <= 13 ?
""),inpos); callback_strings[function+2] : ""),
inpos);
if(!quiet){ if(!quiet){
long test; long test;