Fixed signed/unsigned comparison compiler warning in Task.cc