about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 7220dd2..8c7892c 100644
--- a/lr.c
+++ b/lr.c
@@ -1028,7 +1028,7 @@ print(const void *nodep, const VISIT which, const int depth)
 					printf("%s", buf);
 					break;
 				}
-				case 'm': printf("%04o", fi->sb.st_mode & 07777); break;
+				case 'm': printf("%04o", (unsigned int)fi->sb.st_mode & 07777); break;
 				case 'M': print_mode(fi->sb.st_mode); break;
 				case 'y':
 					putchar("0pcCd?bBf?l?s???"[(fi->sb.st_mode >> 12) & 0x0f]);