]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/dwarf2expr.c
Add casts for legitimate integer to enum conversions
[thirdparty/binutils-gdb.git] / gdb / dwarf2expr.c
index 071b83fa7042a4bd5ac7c4cd14af4a7b2ab10c65..862a75387fe2a347f5648b5248bc384ca40fd597 100644 (file)
@@ -654,7 +654,7 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 
   while (op_ptr < op_end)
     {
-      enum dwarf_location_atom op = *op_ptr++;
+      enum dwarf_location_atom op = (enum dwarf_location_atom) *op_ptr++;
       ULONGEST result;
       /* Assume the value is not in stack memory.
         Code that knows otherwise sets this to 1.