Fix ord() showing negative values for some special characters. This fixes PH7 ticket #18
This commit is contained in:
parent
4a98bdc865
commit
f3152333d6
|
@ -2974,7 +2974,7 @@ static int PH7_builtin_lcfirst(ph7_context *pCtx,int nArg,ph7_value **apArg)
|
||||||
*/
|
*/
|
||||||
static int PH7_builtin_ord(ph7_context *pCtx,int nArg,ph7_value **apArg)
|
static int PH7_builtin_ord(ph7_context *pCtx,int nArg,ph7_value **apArg)
|
||||||
{
|
{
|
||||||
const char *zString;
|
const unsigned char *zString;
|
||||||
int nLen,c;
|
int nLen,c;
|
||||||
if( nArg < 1 ){
|
if( nArg < 1 ){
|
||||||
/* Missing arguments,return -1 */
|
/* Missing arguments,return -1 */
|
||||||
|
|
Loading…
Reference in New Issue