ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.12 by root, Tue Sep 12 21:10:32 2006 UTC vs.
Revision 1.13 by root, Thu Sep 14 00:07:15 2006 UTC

83 return static_cast<pointer>(alloc (n * sizeof (Tp))); 83 return static_cast<pointer>(alloc (n * sizeof (Tp)));
84 } 84 }
85 85
86 void deallocate (pointer p, size_type n) 86 void deallocate (pointer p, size_type n)
87 { 87 {
88 dealloc (static_cast<void *>(p), n); 88 dealloc (static_cast<void *>(p), n * sizeof (Tp));
89 } 89 }
90 90
91 size_type max_size ()const throw () 91 size_type max_size ()const throw ()
92 { 92 {
93 return size_t (-1) / sizeof (Tp); 93 return size_t (-1) / sizeof (Tp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines