Correct variable types, to make compiler silent.
All checks were successful
The build was successful.

This commit is contained in:
2019-06-17 14:28:03 +02:00
parent bffd44a7b4
commit 0be38392bd
3 changed files with 3 additions and 3 deletions

View File

@@ -2334,7 +2334,7 @@ static int PH7_builtin_ord(ph7_context *pCtx, int nArg, ph7_value **apArg) {
return PH7_OK;
}
/* Extract the target string */
zString = ph7_value_to_string(apArg[0], &nLen);
zString = (const unsigned char *)ph7_value_to_string(apArg[0], &nLen);
if(nLen < 1) {
/* Empty string,return -1 */
ph7_result_int(pCtx, -1);

View File

@@ -5391,7 +5391,7 @@ PH7_PRIVATE sxi32 PH7_HashmapWalk(
* If all elements are compatible with each other and can be safely typecasted w/o data loss
* the SXRET_OK is returned. Otherwise, SXERR_NOMATCH is returned.
*/
PH7_PRIVATE sxi32 PH7_HashmapCast(ph7_value *pObj, sxi32 nType) {
PH7_PRIVATE sxi32 PH7_HashmapCast(ph7_value *pObj, sxu32 nType) {
sxi32 rc;
if((pObj->nType & MEMOBJ_HASHMAP)) {
if((pObj->nType & nType) == 0) {