Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
629c715d
Commit
629c715d
authored
Sep 07, 2007
by
Stefan Monnier
Browse files
(x_set_frame_parameters): Check number is positive before using XFASTINT.
parent
98a6dc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/frame.c
src/frame.c
+2
-2
No files found.
src/frame.c
View file @
629c715d
...
...
@@ -3082,9 +3082,9 @@ x_set_frame_parameters (f, alist)
prop
=
parms
[
i
];
val
=
values
[
i
];
if
(
EQ
(
prop
,
Qwidth
)
&&
N
UMBER
P
(
val
))
if
(
EQ
(
prop
,
Qwidth
)
&&
N
ATNUM
P
(
val
))
width
=
XFASTINT
(
val
);
else
if
(
EQ
(
prop
,
Qheight
)
&&
N
UMBER
P
(
val
))
else
if
(
EQ
(
prop
,
Qheight
)
&&
N
ATNUM
P
(
val
))
height
=
XFASTINT
(
val
);
else
if
(
EQ
(
prop
,
Qtop
))
top
=
val
;
...
...
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