diff options
| author | Po Lu | 2023-04-03 10:23:33 +0800 |
|---|---|---|
| committer | Po Lu | 2023-04-03 10:23:33 +0800 |
| commit | 0e0ea976cadb950258d7f3754f8fe581d092e36a (patch) | |
| tree | d03f3adee8de25daba0d025fd71e3e3fb2aa24d1 /src | |
| parent | 8bca62d552a3ca5dc262f916055d9d443d360af8 (diff) | |
| download | emacs-0e0ea976cadb950258d7f3754f8fe581d092e36a.tar.gz emacs-0e0ea976cadb950258d7f3754f8fe581d092e36a.zip | |
Update Android port
* src/sfnt.c (sfnt_normalize_vector): Don't rely on undefined
sign extension semantics.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sfnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sfnt.c b/src/sfnt.c index f30093ba765..800adc19214 100644 --- a/src/sfnt.c +++ b/src/sfnt.c | |||
| @@ -8241,8 +8241,8 @@ sfnt_normalize_vector (sfnt_f26dot6 vx, sfnt_f26dot6 vy, | |||
| 8241 | goto fail; | 8241 | goto fail; |
| 8242 | 8242 | ||
| 8243 | /* Long division.. eek! */ | 8243 | /* Long division.. eek! */ |
| 8244 | vector->x = (sfnt_div_fixed (vx * 1024, magnitude) >> 2); | 8244 | vector->x = (sfnt_div_fixed (vx * 1024, magnitude) / 4); |
| 8245 | vector->y = (sfnt_div_fixed (vy * 1024, magnitude) >> 2); | 8245 | vector->y = (sfnt_div_fixed (vy * 1024, magnitude) / 4); |
| 8246 | } | 8246 | } |
| 8247 | 8247 | ||
| 8248 | /* Compute a unit vector describing the direction of a line from the | 8248 | /* Compute a unit vector describing the direction of a line from the |