diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-06-25 11:41:07 -0500 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-06-25 15:28:08 -0500 |
commit | 728968a2e6985b31956340199221da6f4bee3ce2 (patch) | |
tree | b6d22fff292a578b5da45dc4d57dfe21a34cf787 /src | |
parent | 040c03cae2db361d2e014a52d969a6b0ebc48f1c (diff) | |
download | emacs-728968a2e6985b31956340199221da6f4bee3ce2.tar.gz |
Pacify Oracle Studio re Time_to_position
* src/keyboard.c (Time_to_position): Use no-op position_to_Time to
pacify Oracle Studio 12.6’s “warning: initializer will be
sign-extended”.
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index ecc5a2169c9..5b5972ceee4 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3738,7 +3738,7 @@ Time_to_position (Time encoded_pos) { if (encoded_pos <= INPUT_EVENT_POS_MAX) return encoded_pos; - Time encoded_pos_min = INPUT_EVENT_POS_MIN; + Time encoded_pos_min = position_to_Time (INPUT_EVENT_POS_MIN); eassert (encoded_pos_min <= encoded_pos); ptrdiff_t notpos = -1 - encoded_pos; return -1 - notpos; |