bug fixed in get_instrs(): instr should be an int rather than a Celem_t.
This commit is contained in:
		
							parent
							
								
									5a95c31414
								
							
						
					
					
						commit
						e46c49e291
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -28,11 +28,11 @@ STATIC get_instrs(f, s_p) | ||||||
| 	 * Such a set must be delimited by a number lower than | 	 * Such a set must be delimited by a number lower than | ||||||
| 	 * the number of the first EM mnemonic. | 	 * the number of the first EM mnemonic. | ||||||
| 	 */ | 	 */ | ||||||
| 	Celem_t instr; | 	int instr; | ||||||
| 
 | 
 | ||||||
| 	fscanf(f, "%d", &instr); | 	fscanf(f, "%d", &instr); | ||||||
| 	while (instr >= sp_fmnem) { | 	while (instr >= sp_fmnem) { | ||||||
| 		Cadd(instr, s_p); | 		Cadd((Celem_t) instr, s_p); | ||||||
| 		fscanf(f, "%d", &instr); | 		fscanf(f, "%d", &instr); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue