Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
a253f4f5
Commit
a253f4f5
authored
24 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Now detects casting of builtin functions.
Fixes [bug 1373]. Rev: src/opcodes.c:1.104
parent
fde244bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/opcodes.c
+6
-2
6 additions, 2 deletions
src/opcodes.c
with
6 additions
and
2 deletions
src/opcodes.c
+
6
−
2
View file @
a253f4f5
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include
"bignum.h"
#include
"bignum.h"
#include
"operators.h"
#include
"operators.h"
RCSID
(
"$Id: opcodes.c,v 1.10
3
2001/03/
04 19:27:18 mirar
Exp $"
);
RCSID
(
"$Id: opcodes.c,v 1.10
4
2001/03/
31 15:36:03 grubba
Exp $"
);
void
index_no_free
(
struct
svalue
*
to
,
struct
svalue
*
what
,
struct
svalue
*
ind
)
void
index_no_free
(
struct
svalue
*
to
,
struct
svalue
*
what
,
struct
svalue
*
ind
)
{
{
...
@@ -423,7 +423,11 @@ void o_cast(struct pike_type *type, INT32 run_time_type)
...
@@ -423,7 +423,11 @@ void o_cast(struct pike_type *type, INT32 run_time_type)
return
;
return
;
case
T_FUNCTION
:
case
T_FUNCTION
:
if
(
Pike_sp
[
-
1
].
subtype
==
FUNCTION_BUILTIN
)
{
Pike_error
(
"Cannot cast builtin functions to object.
\n
"
);
}
else
{
sp
[
-
1
].
type
=
T_OBJECT
;
sp
[
-
1
].
type
=
T_OBJECT
;
}
break
;
break
;
default:
default:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment