[PATCH 2/2] format_proc_cpuinfo: fix microcode revision shift direction

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Tue Jul 7 19:00:37 GMT 2020


---
 winsup/cygwin/fhandler_proc.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index f637dfd8e4..2396bfe573 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -735,7 +735,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
 	      memcpy (&microcode, uc[uci].uc_microcode, sizeof (microcode));
 
 	      if (!(microcode & 0xFFFFFFFFLL))	/* some values in high bits */
-		  microcode <<= 32;		/* shift them down */
+		  microcode >>= 32;		/* shift them down */
 	    }
 	}
 
-- 
2.27.0



More information about the Cygwin-patches mailing list