about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/getcwd.c')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index 7c27426f3c..6725d16058 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -143,7 +143,7 @@ __getcwd (char *buf, size_t size)
     {
       if (path[0] == '/')
 	{
-	  if (n >= alloc_size - 1)
+	  if ((size_t) n >= alloc_size - 1)
 	    {
 	      if (buf == NULL)
 		free (path);