From: Michal Krol Date: Thu, 17 Sep 2009 10:14:12 +0000 (+0200) Subject: slang/pp: Fix file number parsing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fcda5000eed29b7c2ba70506ae34b209239eec6;p=mesa.git slang/pp: Fix file number parsing. --- diff --git a/src/glsl/pp/sl_pp_line.c b/src/glsl/pp/sl_pp_line.c index c38f4b0f2e6..504c20ebcdd 100644 --- a/src/glsl/pp/sl_pp_line.c +++ b/src/glsl/pp/sl_pp_line.c @@ -110,7 +110,7 @@ sl_pp_process_line(struct sl_pp_context *context, if (file_number != -1) { unsigned int file; - file_number = atoi(sl_pp_context_cstr(context, file_number)); + file = atoi(sl_pp_context_cstr(context, file_number)); if (context->file != file) { struct sl_pp_token_info ti;