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
1b42cf2e
Commit
1b42cf2e
authored
Oct 04, 1994
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Faref, Farray_length): Don't use XFASTINT as an lvalue.
parent
48c7cef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/data.c
src/data.c
+2
-2
No files found.
src/data.c
View file @
1b42cf2e
...
...
@@ -1336,7 +1336,7 @@ ARRAY may be a vector or a string, or a byte-code object. INDEX starts at 0.")
if
(
STRINGP
(
array
))
{
Lisp_Object
val
;
XFASTINT
(
val
)
=
(
unsigned
char
)
XSTRING
(
array
)
->
data
[
idxval
];
X
SET
FASTINT
(
val
,
(
unsigned
char
)
XSTRING
(
array
)
->
data
[
idxval
]
)
;
return
val
;
}
else
...
...
@@ -1378,7 +1378,7 @@ Farray_length (array)
register
Lisp_Object
size
;
if
(
!
VECTORP
(
array
)
&&
!
STRINGP
(
array
)
&&
!
COMPILEDP
(
array
))
array
=
wrong_type_argument
(
Qarrayp
,
array
);
XFASTINT
(
size
)
=
XVECTOR
(
array
)
->
size
;
X
SET
FASTINT
(
size
,
XVECTOR
(
array
)
->
size
)
;
return
size
;
}
...
...
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