diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-10-26 20:03:50 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-10-26 20:03:50 +0000 |
commit | c752987457f50c1adf5051e1fd8167a5637f1e34 (patch) | |
tree | e78349513f1c0c7f37bd6d96935f90d9c5257e15 /externals/grill/flext/source/flsupport.h | |
parent | e44cd51e389696bc871ece7d9ea08d10a683382e (diff) |
""
svn path=/trunk/; revision=2169
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r-- | externals/grill/flext/source/flsupport.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index d9f5b540..69848762 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -64,7 +64,7 @@ public: static void FreeAligned(void *blk); //! Test for alignment static bool IsAligned(void *ptr,int bitalign = 128) { - return (reinterpret_cast<unsigned long>(ptr)&(bitalign-1)) == 0; + return (reinterpret_cast<size_t>(ptr)&(bitalign-1)) == 0; } //! @} FLEXT_S_MEMORY }; @@ -256,14 +256,14 @@ public: static void CopyAtom(t_atom *dst,const t_atom *src) { *dst = *src; } //! Print an atom - static bool PrintAtom(const t_atom &a,char *buf,int bufsz); + static bool PrintAtom(const t_atom &a,char *buf,size_t bufsz); //! Scan an atom static bool ScanAtom(t_atom &a,const char *buf); //! Copy a list of atoms static t_atom *CopyList(int argc,const t_atom *argv); //! Print an atom list - static bool PrintList(int argc,const t_atom *argv,char *buf,int bufsz); + static bool PrintList(int argc,const t_atom *argv,char *buf,size_t bufsz); //! Copy a memory region static void CopyMem(void *dst,const void *src,int bytes); @@ -412,7 +412,7 @@ public: //! Access the string value (without type check) static const char *GetString(const t_atom &a) { t_symbol *s = GetSymbol(a); return s?GetString(s):NULL; } //! Check for a string and get its value - static void GetAString(const t_atom &a,char *buf,int szbuf); + static void GetAString(const t_atom &a,char *buf,size_t szbuf); //! Set the atom to represent a string static void SetString(t_atom &a,const char *c) { SetSymbol(a,MakeSymbol(c)); } |