Skip to content

Commit 9fa552f

Browse files
committed
Fix incorrect enum value uses in xmlrpc
1 parent fdfb390 commit 9fa552f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/xmlrpc/libxmlrpc/xmlrpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ XMLRPC_VALUE_TYPE XMLRPC_GetValueType(XMLRPC_VALUE value) {
22422242
* SOURCE
22432243
*/
22442244
XMLRPC_VECTOR_TYPE XMLRPC_GetVectorType(XMLRPC_VALUE value) {
2245-
return(value && value->v) ? value->v->type : xmlrpc_none;
2245+
return(value && value->v) ? value->v->type : xmlrpc_vector_none;
22462246
}
22472247

22482248
/*******/
@@ -2286,7 +2286,7 @@ XMLRPC_VALUE_TYPE_EASY XMLRPC_GetValueTypeEasy (XMLRPC_VALUE value) {
22862286
return(XMLRPC_VALUE_TYPE_EASY) value->type;
22872287
}
22882288
}
2289-
return xmlrpc_none;
2289+
return xmlrpc_type_none;
22902290
}
22912291

22922292
/*******/

ext/xmlrpc/xmlrpc-epi-php.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ XMLRPC_VECTOR_TYPE xmlrpc_str_as_vector_type(const char* str) /* {{{ */
12671267
}
12681268
}
12691269
}
1270-
return xmlrpc_none;
1270+
return xmlrpc_vector_none;
12711271
}
12721272
/* }}} */
12731273

0 commit comments

Comments
 (0)