瀏覽代碼

Arreglo warnings en el sched.

Fabian 10 年之前
父節點
當前提交
6336b1c2c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sched_rr.cpp

+ 2 - 2
sched_rr.cpp

@@ -8,7 +8,7 @@ SchedRR::SchedRR(vector<int> argn) {
 	nucleos = argn[1];
 	quantums = new uint[nucleos];
 
-	for (int i = 0; i < nucleos; i++) {
+	for (uint i = 0; i < nucleos; i++) {
 		quantums[i] = argn[i + 2];
 	}
 
@@ -54,7 +54,7 @@ int SchedRR::next_pid(uint cur_pid) {
 
 int SchedRR::tick(int cpu, const enum Motivo m) {
 	uint switch_process = 0;
-	uint cur_pid = current_pid(cpu);
+	int cur_pid = current_pid(cpu);
 
 	switch (m) {
 	case TICK: