fix off by one segfault
This commit is contained in:
		| @@ -216,8 +216,8 @@ function Group.update_net_c(netc, tick) | |||||||
| 		netc.state[0] = state | 		netc.state[0] = state | ||||||
| 		netc.update_tick[0] = tick | 		netc.update_tick[0] = tick | ||||||
| 		 | 		 | ||||||
| 		local len = netc.num_gates_update[0] | 		local len = netc.num_gates_update[0]-1 | ||||||
| 		for i = 1, len do | 		for i = 0, len do | ||||||
| 			local gatec = netc.gates_update_c[i] | 			local gatec = netc.gates_update_c[i] | ||||||
| 			if gatec and gatec.in_queue[0]==0 then | 			if gatec and gatec.in_queue[0]==0 then | ||||||
| 				Simulation.queue_gate_c(GSim, gatec) | 				Simulation.queue_gate_c(GSim, gatec) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo