Update of /cvsroot/binaryphp/binaryphp
In directory sc8-pr-cvs1:/tmp/cvs-serv10052
Modified Files:
php_var.cpp php_var.hpp
Log Message:
Added type cast to long (patch from Devon Weller <dew...@us...>)
Index: php_var.cpp
===================================================================
RCS file: /cvsroot/binaryphp/binaryphp/php_var.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** php_var.cpp 20 Sep 2003 17:10:12 -0000 1.34
--- php_var.cpp 25 Sep 2003 22:24:34 -0000 1.35
***************
*** 256,259 ****
--- 256,265 ----
return *this;
}
+ php_var &php_var::operator=(long i)
+ {
+ container = intstring(i);
+ type = PHP_INT;
+ return *this;
+ }
php_var &php_var::operator=(double d)
{
Index: php_var.hpp
===================================================================
RCS file: /cvsroot/binaryphp/binaryphp/php_var.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** php_var.hpp 2 Sep 2003 02:04:02 -0000 1.5
--- php_var.hpp 25 Sep 2003 22:24:34 -0000 1.6
***************
*** 64,67 ****
--- 64,68 ----
php_var &operator=(int i);
php_var &operator=(unsigned int i);
+ php_var &operator=(long i);
php_var &operator=(double d);
php_var &operator=(char *str);
|