mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	quote: use nasm_assert() instead of plain assert()
We have nasm_assert() now, so use it... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
		
							
								
								
									
										3
									
								
								quote.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								quote.c
									
									
									
									
									
								
							| @@ -37,7 +37,6 @@ | |||||||
|  |  | ||||||
| #include "compiler.h" | #include "compiler.h" | ||||||
|  |  | ||||||
| #include <assert.h> |  | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
|  |  | ||||||
| #include "nasmlib.h" | #include "nasmlib.h" | ||||||
| @@ -177,7 +176,7 @@ char *nasm_quote(char *str, size_t len) | |||||||
| 	} | 	} | ||||||
| 	*q++ = '`'; | 	*q++ = '`'; | ||||||
| 	*q++ = '\0'; | 	*q++ = '\0'; | ||||||
| 	assert((size_t)(q-nstr) == qlen+3); | 	nasm_assert((size_t)(q-nstr) == qlen+3); | ||||||
|     } |     } | ||||||
|     return nstr; |     return nstr; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user