diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-01-20 13:24:53 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-01-20 14:20:43 +0100 |
| commit | 9d7a67da1fc226035f2db52868400394ceba20ab (patch) | |
| tree | db31e4781c6c8d719cad0a63851d33eb201cf811 /csource | |
| parent | 44e91ae9004fe679103818999b3c44e5a6886630 (diff) | |
executor: fix warning regarding type cast in STORE_BY_BITMASK
Diffstat (limited to 'csource')
| -rw-r--r-- | csource/common.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csource/common.go b/csource/common.go index f253083bf..004e5bbd2 100644 --- a/csource/common.go +++ b/csource/common.go @@ -148,7 +148,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)); \ |
