summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/androidjniinput.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2015-07-27 10:59:39 +0200
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-08-11 11:01:27 +0000
commitd44ca1ed0b70a64113cce270d4dad45a1fef7235 (patch)
tree2b2462d83e31c714940be5266f0151c449d531d5 /src/plugins/platforms/android/androidjniinput.cpp
parent670cb2edbcdc13b33cebe45a682a6dc10f17b616 (diff)
Remove type punning from QRgba64.
In C++, type punning with a union is not allowed. It will result in compiler defined behavior at best, and undefined behavior at worst. Specifically, if QRgba64 is passed to a function by value, the different members of a struct might be passed in separate registers. This means that any write to the quint64 might not blank out the values of the struct whenever the compiler looses track with TBAA. Change-Id: I991b5492fe4bb13a14bb670fef5bf13dacbe6c0a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/android/androidjniinput.cpp')
0 files changed, 0 insertions, 0 deletions