about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2024-12-12 15:25:39 +0300
committerklensy <klensy@users.noreply.github.com>2024-12-12 15:25:39 +0300
commita3eeee3f96fa43578a644ab6a7a445d0e4f4cd3a (patch)
tree067959be5febfe3c903594fdf15f1f5031e1d2c6 /src
parentcd3f69974fcfff27b285f225ad1222a361a534cd (diff)
downloadrust-a3eeee3f96fa43578a644ab6a7a445d0e4f4cd3a.tar.gz
rust-a3eeee3f96fa43578a644ab6a7a445d0e4f4cd3a.zip
fix typo
Diffstat (limited to 'src')
-rw-r--r--src/int.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/int.rs b/src/int.rs
index 1893d5a17dc..2a5a004ab8c 100644
--- a/src/int.rs
+++ b/src/int.rs
@@ -90,7 +90,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
                     }
                 }
             }
-        } else if a_type.is_vector() && a_type.is_vector() {
+        } else if a_type.is_vector() && b_type.is_vector() {
             a >> b
         } else if a_native && !b_native {
             self.gcc_lshr(a, self.gcc_int_cast(b, a_type))
@@ -659,7 +659,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
                     }
                 }
             }
-        } else if a_type.is_vector() && a_type.is_vector() {
+        } else if a_type.is_vector() && b_type.is_vector() {
             a << b
         } else if a_native && !b_native {
             self.gcc_shl(a, self.gcc_int_cast(b, a_type))