Bug #20342 instance_len: conversion from 'size_t' to 'const uint'
Submitted: 8 Jun 2006 15:17 Modified: 9 Jun 2006 11:02
Reporter: Christopher Yeleighton (Candidate Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.21 OS:Windows (Microsoft Windows XP Professiona)
Assigned to: CPU Architecture:Any

[8 Jun 2006 15:17] Christopher Yeleighton
Description:
const ulong instance_len= strlen(defaults_group_suffix); 

mysql-5.0.21\mysys\mf_iocache.c(165) : warning C4311: 'type cast' : pointer truncation from 'IO_CACHE *' to 'ulong'

How to repeat:
Compile file "mysql-5.0.21\mysys\mf_iocache.c"

Suggested fix:
const size_t instance_len= strlen(defaults_group_suffix);
[9 Jun 2006 11:02] Sveta Smirnova
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

I tried it with last 5.0.23 source tree and got no warnings