/[ascend]/trunk/base/generic/compiler/refineinst.c
ViewVC logotype

Diff of /trunk/base/generic/compiler/refineinst.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by aw0a, Sat Nov 13 16:45:56 2004 UTC revision 101 by jds, Sat Dec 10 04:22:07 2005 UTC
# Line 346  RefineBooleanConstant(struct BooleanCons Line 346  RefineBooleanConstant(struct BooleanCons
346        SetBooleanAtomValue(INST(i),GetConstantDefBoolean(type),0);        SetBooleanAtomValue(INST(i),GetConstantDefBoolean(type),0);
347      }      }
348    } else {    } else {
349      if (BCV(i) != GetConstantDefBoolean(type) ) {      /* the following will fail if your compiler doesn't use 1 for TRUE */
350        if ((unsigned)BCV(i) != GetConstantDefBoolean(type) ) {
351        FPRINTF(ASCERR,"Value conflict in RefineBooleanConstant.\n");        FPRINTF(ASCERR,"Value conflict in RefineBooleanConstant.\n");
352        FPRINTF(ASCERR,"Unable to refine instance.\n");        FPRINTF(ASCERR,"Unable to refine instance.\n");
353        return INST(i);        return INST(i);

Legend:
Removed from v.100  
changed lines
  Added in v.101

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22