X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f29a7129de56edca96ea8ef58576898c1e52ed6f..4ddd90e71988f16c5ea79f5de86a9fcb63973ded:/Model/include/or.h?ds=sidebyside diff --git a/Model/include/or.h b/Model/include/or.h index 0bbc22c..b7d6d0c 100644 --- a/Model/include/or.h +++ b/Model/include/or.h @@ -4,15 +4,15 @@ #include "logiccontrol.h" #include -#include +#include namespace PlaQui { namespace Model { /** Función O Lógica */ -class Or:LogicControl { +class Or:public LogicControl { public: - Or():LogicControl(MAX_INT,1) {} + Or():LogicControl(INT_MAX,1) {} virtual ~Or() {} virtual bool get_output() { @@ -21,8 +21,8 @@ public: /* Si tengo alguien conectado */ std::list::iterator it; for(it = in_list.begin(); it != in_list.end(); it++) { - mi_entrada = *it; - mi_salida ||= mi_entrada->get_output(); + mi_entrada = static_cast(*it); + mi_salida = mi_entrada || mi_entrada->get_output(); } return mi_salida; }