diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-09-23 13:38:09 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-23 20:05:44 +0200 |
commit | b4170aed36e667e52ce4a353bda1964e3872ab34 (patch) | |
tree | a85852cf4a619c6782224dd7e86cc18c310bcd01 /src/libudev | |
parent | ce540a24d53e1751a5b69224d5a7f5a59f2de7ad (diff) |
terminal: fix tile-offset calculation
Binary operators with two pointers as arguments always operate on
object-size, not bytes. That is, "int *a, *b", (a - b) calculates the
number of integers between b and a, not the number of bytes.
Fix our cache-offset calculation to not use sizeof() with full-ptr
arithmetic.
Diffstat (limited to 'src/libudev')
0 files changed, 0 insertions, 0 deletions