emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 728968a2e6 1/5: Pacify Oracle Studio re Time_to_position


From: Paul Eggert
Subject: master 728968a2e6 1/5: Pacify Oracle Studio re Time_to_position
Date: Sat, 25 Jun 2022 16:28:18 -0400 (EDT)

branch: master
commit 728968a2e6985b31956340199221da6f4bee3ce2
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    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”.
---
 src/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index ecc5a2169c..5b5972ceee 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]