View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000407 | LDMud 3.3 | Efuns | public | 2005-10-12 11:03 | 2018-01-29 21:57 |
| Reporter | Gnomi | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | i686 | OS | Debian GNU/Linux | OS Version | 3.1 |
| Product Version | 3.3 | ||||
| Fixed in Version | 3.3 | ||||
| Summary | 0000407: bind_lambda doesn't ignore unbindable closures when the second arg is missing | ||||
| Description | Hi, there is a simple error in v_bind_lambda, which checks sp[1].type == T_NUMBER (as it was in 3.2) instead of num_arg == 1. That's why bind_lambda(lambda(0,0)) throws an error but that shouldn't, because the second argument is missing. A patch is attached. Greetings, Gnomi | ||||
| Tags | No tags attached. | ||||
| Attached Files | closure.bind_lambda.diff (467 bytes)
Index: src/closure.c
===================================================================
--- src/closure.c (Revision 35)
+++ src/closure.c (Arbeitskopie)
@@ -5887,7 +5887,7 @@
* throw an error (unless <ob> has been omitted)
*/
free_object(ob, "bind_lambda");
- if (sp[1].type == T_NUMBER)
+ if (num_arg == 1)
break;
errorf("Bad arg 1 to bind_lambda(): unbindable closure\n");
/* NOTREACHED */
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-10-12 11:03 | Gnomi | New Issue | |
| 2005-10-12 11:03 | Gnomi | File Added: closure.bind_lambda.diff | |
| 2005-11-24 12:03 |
|
Status | new => resolved |
| 2005-11-24 12:03 |
|
Fixed in Version | => 3.3 |
| 2005-11-24 12:03 |
|
Resolution | open => fixed |
| 2005-11-24 12:03 |
|
Assigned To | => lars |
| 2005-11-24 12:03 |
|
Note Added: 0000413 | |
| 2006-02-28 20:04 |
|
Status | resolved => closed |
| 2010-11-16 09:42 |
|
Source_changeset_attached | => ldmud.git master db8cbf3c |
| 2018-01-29 18:59 |
|
Source_changeset_attached | => ldmud.git master db8cbf3c |
| 2018-01-29 21:57 |
|
Source_changeset_attached | => ldmud.git master db8cbf3c |