Changeset 6f7d4f6 for variable.c


Ignore:
Timestamp:
Jul 19, 2011, 2:00:10 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.9
Children:
9ba51c2, fa180a3, 778e230
Parents:
883502d
Message:
Pass initval to owl_variable_dict_newvar_bool as int, not bool

While bool is ostensibly cleaner, the rest of the code dealing with bool
owl_variables treats it as an int. Switching only this one results in
valgrind complaining about conditioning on uninitialized values because
we end up casting bool* to int*.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r30d0cf7 r6f7d4f6  
    707707}
    708708
    709 void owl_variable_dict_newvar_bool(owl_vardict *vd, const char *name, const char *summ, const char *desc, bool initval)
     709void owl_variable_dict_newvar_bool(owl_vardict *vd, const char *name, const char *summ, const char *desc, int initval)
    710710{
    711711  owl_variable *old = owl_variable_get_var(vd, name);
Note: See TracChangeset for help on using the changeset viewer.