Skip to content

Commit f315233

Browse files
author
Rafal Kupiec
committed
Fix ord() showing negative values for some special characters. This fixes PH7 ticket symisc#18
1 parent 4a98bdc commit f315233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,7 @@ static int PH7_builtin_lcfirst(ph7_context *pCtx,int nArg,ph7_value **apArg)
29742974
*/
29752975
static int PH7_builtin_ord(ph7_context *pCtx,int nArg,ph7_value **apArg)
29762976
{
2977-
const char *zString;
2977+
const unsigned char *zString;
29782978
int nLen,c;
29792979
if( nArg < 1 ){
29802980
/* Missing arguments,return -1 */

0 commit comments

Comments
 (0)