diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-20 14:29:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-20 14:29:17 +0100 |
| commit | affae90ec407a54751b799027e31a672d3914039 (patch) | |
| tree | c1334f5c74f3965130bbdf34cd3daa354a6f4661 /executor | |
| parent | 5d49e42c4457cc6d9a200658eb837bafa759f354 (diff) | |
| parent | 9d7a67da1fc226035f2db52868400394ceba20ab (diff) | |
Merge pull request #112 from xairy/bitfields-fix
Bitfields fixes
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common.h b/executor/common.h index 5c5bb1032..f2d4487a3 100644 --- a/executor/common.h +++ b/executor/common.h @@ -164,7 +164,7 @@ static void install_segv_handler() #define STORE_BY_BITMASK(type, addr, val, bf_off, bf_len) \ if ((bf_off) == 0 && (bf_len) == 0) { \ - *(type*)(addr) = (val); \ + *(type*)(addr) = (type)(val); \ } else { \ type new_val = *(type*)(addr); \ new_val &= ~BITMASK_LEN_OFF(type, (bf_off), (bf_len)); \ |
