From: Michael Adam Date: Fri, 27 Jun 2008 10:42:07 +0000 (+0200) Subject: ntlmssp: get rid of "cast to pointer from integer of different size" warning on 64 bit X-Git-Tag: samba-4.0.0alpha5~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2813882ef3cc3609a74ad83bcee6be0c2cd53494;p=thirdparty%2Fsamba.git ntlmssp: get rid of "cast to pointer from integer of different size" warning on 64 bit Not sure if this check is actually necessary, though: the second should be sufficient. Michael --- diff --git a/source/auth/ntlmssp/ntlmssp_parse.c b/source/auth/ntlmssp/ntlmssp_parse.c index 8e31d814d03..e1c1e7cbb32 100644 --- a/source/auth/ntlmssp/ntlmssp_parse.c +++ b/source/auth/ntlmssp/ntlmssp_parse.c @@ -241,7 +241,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, ret = false; goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup; @@ -276,7 +276,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup; @@ -311,7 +311,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup;