Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
83c77d31
Commit
83c77d31
authored
Jun 12, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dired.c (Ffile_attributes): Don't use 32-bit hack on 64-bit hosts.
parent
ee2079f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/ChangeLog
src/ChangeLog
+2
-0
src/dired.c
src/dired.c
+8
-5
No files found.
src/ChangeLog
View file @
83c77d31
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* dired.c (Ffile_attributes): Don't use 32-bit hack on 64-bit hosts.
* unexelf.c (unexec): Don't assume BSS addr fits in unsigned.
* xterm.c (handle_one_xevent): Omit unnecessary casts to unsigned.
...
...
src/dired.c
View file @
83c77d31
...
...
@@ -978,11 +978,14 @@ so last access time will always be midnight of that day. */)
values
[
4
]
=
make_time
(
s
.
st_atime
);
values
[
5
]
=
make_time
(
s
.
st_mtime
);
values
[
6
]
=
make_time
(
s
.
st_ctime
);
values
[
7
]
=
make_fixnum_or_float
(
s
.
st_size
);
/* If the size is negative, and its type is long, convert it back to
positive. */
if
(
s
.
st_size
<
0
&&
sizeof
(
s
.
st_size
)
==
sizeof
(
long
))
values
[
7
]
=
make_float
((
double
)
((
unsigned
long
)
s
.
st_size
));
/* If the file size is a 4-byte type, assume that files of sizes in
the 2-4 GiB range wrap around to negative values, as this is a
common bug on older 32-bit platforms. */
if
(
sizeof
(
s
.
st_size
)
==
4
)
values
[
7
]
=
make_fixnum_or_float
(
s
.
st_size
&
0xffffffffu
);
else
values
[
7
]
=
make_fixnum_or_float
(
s
.
st_size
);
filemodestring
(
&
s
,
modes
);
values
[
8
]
=
make_string
(
modes
,
10
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment