diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-26 08:41:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-26 13:26:01 +0200 |
commit | dec009996b35c35e8bd060ccf4dac0f0ed7da573 (patch) | |
tree | 680504e3b92945aa8e3c8c2d683d7e2052be4812 /unoidl | |
parent | 80ae85d89866e501496189b2749071869ab6e98c (diff) |
cid#1448388 Assignment of overlapping memory
Change-Id: I9946af03ed5ac6823e610d6c8bf24afae463777e
Reviewed-on: https://gerrit.libreoffice.org/76354
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/sourceprovider-parser.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y index 965a3b9b8c37..e9812570ed3c 100644 --- a/unoidl/source/sourceprovider-parser.y +++ b/unoidl/source/sourceprovider-parser.y @@ -203,8 +203,11 @@ bool coerce( } break; case unoidl::detail::SourceProviderExpr::TYPE_FLOAT: - lhs->fval = lhs->ival; - ok = true; + { + auto tmp = lhs->ival; + lhs->fval = tmp; + ok = true; + } break; } break; |