Skip to contentSkip to conversation

MPILIB: Fix obvious but harmless typo

PATCH Applied Rasmus Villemoes 2 participants 2 messages Jan 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPILIB: Fix obvious but harmless typo

The macro MPN_COPY_INCR this occurs in isn't used anywhere.

---
Another small thing I stumbled on.

 lib/mpi/mpi-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/mpi/mpi-internal.h +1 -1
index 60cf765628e9..c65dd1bff45a 100644
@@ -84,7 +84,7 @@ static inline int RESIZE_IF_NEEDED(MPI a, unsigned b)
 	do {					\
 		mpi_size_t _i;			\
 		for (_i = 0; _i < (n); _i++)	\
-			(d)[_i] = (d)[_i];	\
+			(d)[_i] = (s)[_i];	\
 	} while (0)
 
 #define MPN_COPY_DECR(d, s, n) \
Signature · 1 line
2.1.3
#1 lore raw
Quoted 1 line · Rasmus Villemoes

The macro MPN_COPY_INCR this occurs in isn't used anywhere.

Applied.

David