Skip to contentSkip to conversation

m68k: cast in strnlen switched to unsigned long

PATCH In review Al Viro 1 participant 1 message Dec 22, 2005

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 36/36 m68k: cast in strnlen switched to unsigned long

From: Al Viro <[email protected]>
Date: 1135012341 -0500

---

 include/asm-m68k/uaccess.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

1dcba025aa483559af90e88e91ab4fd62304bb5c

include/asm-m68k/uaccess.h +1 -1
index a653bf8..2ffd87b 100644
@@ -805,7 +805,7 @@ static inline long strnlen_user(const ch
 {
 	long res;
 
-	res = -(long)src;
+	res = -(unsigned long)src;
 	__asm__ __volatile__
 		("1:\n"
 		 "   tstl %2\n"
Signature · 1 line
0.99.9.GIT