diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-29 12:55:59 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-29 12:55:59 +0100 |
commit | 80ec5742b580d0c9e79e55e44b89e2fb73334d33 (patch) | |
tree | cba7f5fc0492a7999b1c70f01d138622166e87fe /src | |
parent | 9fc749eade716bbad43174035ac7c8627b4858aa (diff) | |
download | qtlocation-mapboxgl-80ec5742b580d0c9e79e55e44b89e2fb73334d33.tar.gz |
don't use alias
Diffstat (limited to 'src')
-rw-r--r-- | src/geometry/line_buffer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/geometry/line_buffer.cpp b/src/geometry/line_buffer.cpp index 5c4e97af3a..ff95a50798 100644 --- a/src/geometry/line_buffer.cpp +++ b/src/geometry/line_buffer.cpp @@ -20,12 +20,9 @@ void LineBuffer::add(int16_t x, int16_t y, float ex, float ey, int8_t tx, int8_t array.push_back((y * 2) | ty); array.push_back(linesofar); - int16_t extrude = 0; - int8_t *extrude_x = ((int8_t *)&extrude) + 0; - int8_t *extrude_y = ((int8_t *)&extrude) + 1; - *extrude_x = round(extrudeScale * ex); - *extrude_y = round(extrudeScale * ey); + *(((int8_t *)&extrude) + 0) = round(extrudeScale * ex); + *(((int8_t *)&extrude) + 1) = round(extrudeScale * ey); array.push_back(extrude); if (!dirty) dirty = true; |