• R/O
  • HTTP
  • SSH
  • HTTPS

swfed: Commit

SWF Editor source repos


Commit MetaInfo

Revisiónd86ae65ad7e38e4da39e0e4bc0b519175b7d7f79 (tree)
Tiempo2015-11-23 02:24:01
AutorYoshihiro Yamazaki <yoya@awm....>
CommiterYoshihiro Yamazaki

Log Message

IS_BOOL を IS_TRUE と IS_FALSE に分けた際に == と != が逆になった。

Cambiar Resumen

Diferencia incremental

--- a/src/php7_swfed.c
+++ b/src/php7_swfed.c
@@ -1169,11 +1169,12 @@ PHP_METHOD(swfed, replaceBitmapData) {
11691169 }
11701170 if (arg4 != NULL) {
11711171 if (Z_TYPE_P(arg4) != IS_ARRAY) { // without_converting (boolean)
1172- if (Z_TYPE_P(arg4) != IS_TRUE) {
1172+ if (Z_TYPE_P(arg4) == IS_TRUE) {
11731173 without_converting = 1;
1174- } else if (Z_TYPE_P(arg4) != IS_FALSE) {
1174+ } else if (Z_TYPE_P(arg4) == IS_FALSE) {
11751175 without_converting = 0;
11761176 } else {
1177+ convert_to_boolean(arg4);
11771178 without_converting = (int) Z_LVAL_P(arg4);
11781179 }
11791180 } else { // or opts (array)
Show on old repository browser