114
114
 
115
115
 
    /*
116
116
 
     * Check arguments.
117
117
 
     */
118
118
 
    HDassert(hdr);
119
119
 
120
120
 
    /* Check for creating free space info for the heap */
121
121
 
    if(H5F_addr_defined(hdr->fs_addr)) {
122
122
 
        /* Open an existing free space structure for the heap */
123
123
 
        if(NULL == (hdr->fspace = H5FS_open(hdr->f, dxpl_id, hdr->fs_addr,
124
 
-
                NELMTS(classes), classes, hdr, H5HF_FSPACE_THRHD_DEF, H5HF_FSPACE_ALIGN_DEF)))
 
124
+
                NELMTS(classes), classes, hdr, (hsize_t)H5HF_FSPACE_THRHD_DEF, (hsize_t)H5HF_FSPACE_ALIGN_DEF)))
125
125
 
            HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't initialize free space info")
126
126
 
    } /* end if */
127
127
 
    else {
128
128
 
        /* Check if we are allowed to create the free space manager */
129
129
 
        if(may_create) {
130
130
 
            H5FS_create_t fs_create;        /* Free space creation parameters */
131
131
 
132
132
 
            /* Set the free space creation parameters */
133
133
 
            fs_create.client = H5FS_CLIENT_FHEAP_ID;
134
134
 
            fs_create.shrink_percent = H5HF_FSPACE_SHRINK;
135
135
 
            fs_create.expand_percent = H5HF_FSPACE_EXPAND;
136
136
 
            fs_create.max_sect_size = hdr->man_dtable.cparam.max_direct_size;
137
137
 
            fs_create.max_sect_addr = hdr->man_dtable.cparam.max_index;
138
138
 
139
139
 
            /* Create the free space structure for the heap */
140
140
 
            if(NULL == (hdr->fspace = H5FS_create(hdr->f, dxpl_id, &hdr->fs_addr,
141
 
-
                    &fs_create, NELMTS(classes), classes, hdr, H5HF_FSPACE_THRHD_DEF, H5HF_FSPACE_ALIGN_DEF)))
 
141
+
                    &fs_create, NELMTS(classes), classes, hdr, (hsize_t)H5HF_FSPACE_THRHD_DEF, (hsize_t)H5HF_FSPACE_ALIGN_DEF)))
142
142
 
                HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't initialize free space info")
143
143
 
            HDassert(H5F_addr_defined(hdr->fs_addr));
144
144
 
        } /* end if */
145
145
 
    } /* end else */
146
146
 
147
147
 
done:
148
148
 
    FUNC_LEAVE_NOAPI(ret_value)
149
149
 
} /* end H5HF_space_start() */
150
150
 
151
151