Permalink
Browse files

Fix mismatching type in computed goto elimination

  • Loading branch information...
kerneis committed Mar 10, 2014
1 parent 5bd57bf commit 667c782fc56f467330268362c6ed3005613f8e4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/frontc/cabs2cil.ml
View
@@ -6525,7 +6525,7 @@ and doStatement (s : A.statement) : chunk =
match !gotoTargetData with
Some (switchv, switch) -> (* We have already generated this one *)
se
- @@ i2c(Set (var switchv, makeCast e' intType, loc'))
+ @@ i2c(Set (var switchv, makeCast e' !upointType, loc'))
@@ s2c(mkStmt(Goto (ref switch, loc')))
| None -> begin

0 comments on commit 667c782

Please sign in to comment.