slang/pp: Fix file number parsing.
authorMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 10:14:12 +0000 (12:14 +0200)
committerMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 10:14:12 +0000 (12:14 +0200)
src/glsl/pp/sl_pp_line.c

index c38f4b0..504c20e 100644 (file)
@@ -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;