comparison lisp/tar-mode.el @ 45329:56a080c7a714

(tar-octal-time): Fix the last argument of logior.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 17 May 2002 11:37:13 +0000
parents c9cbe448711d
children eed727396dd0
comparison
equal deleted inserted replaced
45328:cbcc456b9a76 45329:56a080c7a714
1092 (defun tar-octal-time (timeval) 1092 (defun tar-octal-time (timeval)
1093 ;; Format a timestamp as 11 octal digits. Ghod, I hope this works... 1093 ;; Format a timestamp as 11 octal digits. Ghod, I hope this works...
1094 (let ((hibits (car timeval)) (lobits (car (cdr timeval)))) 1094 (let ((hibits (car timeval)) (lobits (car (cdr timeval))))
1095 (insert (format "%05o%01o%05o" 1095 (insert (format "%05o%01o%05o"
1096 (lsh hibits -2) 1096 (lsh hibits -2)
1097 (logior (lsh (logand 3 hibits) 1) (> (logand lobits 32768) 0)) 1097 (logior (lsh (logand 3 hibits) 1)
1098 (if (> (logand lobits 32768) 0) 1 0))
1098 (logand 32767 lobits) 1099 (logand 32767 lobits)
1099 )))) 1100 ))))
1100 1101
1101 (defun tar-subfile-save-buffer () 1102 (defun tar-subfile-save-buffer ()
1102 "In tar subfile mode, save this buffer into its parent tar-file buffer. 1103 "In tar subfile mode, save this buffer into its parent tar-file buffer.