mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-28 20:20:13 +01:00
[script] Reverse direction of bitshift.
Positive shift counts should shift left according to PostScript.
This commit is contained in:
parent
4be479cc63
commit
7540ac7f23
1 changed files with 2 additions and 2 deletions
|
|
@ -930,9 +930,9 @@ _bitshift (csi_t *ctx)
|
|||
|
||||
if (shift < 0) {
|
||||
shift = -shift;
|
||||
v <<= shift;
|
||||
} else
|
||||
v >>= shift;
|
||||
} else
|
||||
v <<= shift;
|
||||
|
||||
pop (1);
|
||||
_csi_peek_ostack (ctx, 0)->datum.integer = v;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue