summaryrefslogtreecommitdiff
path: root/sql/sql_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_alloc.h')
-rw-r--r--sql/sql_alloc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_alloc.h b/sql/sql_alloc.h
index e7cda5b2abf..c3bee260817 100644
--- a/sql/sql_alloc.h
+++ b/sql/sql_alloc.h
@@ -27,13 +27,11 @@ class Sql_alloc
public:
static void *operator new(size_t size) throw ()
{
- DBUG_ASSERT(size < UINT_MAX32);
- return thd_alloc(thd_get_current_thd(), uint(size));
+ return thd_alloc(thd_get_current_thd(), size);
}
static void *operator new[](size_t size) throw ()
{
- DBUG_ASSERT(size < UINT_MAX32);
- return thd_alloc(thd_get_current_thd(), uint(size));
+ return thd_alloc(thd_get_current_thd(), size);
}
static void *operator new[](size_t size, MEM_ROOT *mem_root) throw ()
{ return alloc_root(mem_root, size); }