/*
** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
long multiVal_forceInt (multiVal m)
{
- llassert (multiVal_isInt (m));
-
- return m->value.ival;
+ if (multiVal_isInt (m)) {
+ return m->value.ival;
+ } else {
+ llcontbug (message ("Multival is not int: %s", multiVal_unparse (m)));
+ return 0;
+ }
}
char multiVal_forceChar (multiVal m)