Add casts for legitimate integer to enum conversions
[deliverable/binutils-gdb.git] / gdb / guile / scm-param.c
index da9c31a41b6e1a43d48a66575b73b27a4a031116..9737c25e03b435374b80ea667a9d6229d6843db0 100644 (file)
@@ -939,7 +939,7 @@ gdbscm_make_parameter (SCM name_scm, SCM rest)
   /* These are all stored in GC space so that we don't have to worry about
      freeing them if we throw an exception.  */
   p_smob->name = name;
-  p_smob->cmd_class = cmd_class;
+  p_smob->cmd_class = (enum command_class) cmd_class;
   p_smob->type = (enum var_types) param_type;
   p_smob->doc = doc;
   p_smob->set_doc = set_doc;
This page took 0.025372 seconds and 4 git commands to generate.