mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
explicitly cast to the type malloc-ed
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
37bfbb8042
commit
19849e49c2
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ void QContiguousCache<T>::clear()
|
|||
template <typename T>
|
||||
inline QContiguousCacheData *QContiguousCache<T>::allocate(int aalloc)
|
||||
{
|
||||
return ::malloc(sizeOfTypedData() + (aalloc - 1) * sizeof(T));
|
||||
return static_cast<QContiguousCacheData*>(::malloc(sizeOfTypedData() + (aalloc - 1) * sizeof(T)));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Reference in a new issue