projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7feb528
)
add braces to silence warnings
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Apr 2004 17:17:00 +0000
(17:17 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Apr 2004 17:17:00 +0000
(17:17 +0000)
src/mesa/shader/grammar.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/grammar.c
b/src/mesa/shader/grammar.c
index 09e09204a0ed2c6beb5af084d49b261a237d2714..3bf67ccc83cccf732fd7e5161d8ac50ed0364d98 100644
(file)
--- a/
src/mesa/shader/grammar.c
+++ b/
src/mesa/shader/grammar.c
@@
-2772,7
+2772,9
@@
void grammar_get_last_error (byte *text, unsigned int size, int *pos)
}
if (p)
- while (*p)
+ {
+ while (*p)
+ {
if (*p == '$')
{
const byte *r = error_param;
@@
-2790,7
+2792,8
@@
void grammar_get_last_error (byte *text, unsigned int size, int *pos)
APPEND_CHARACTER(*p)
p++;
}
-
+ }
+ }
*pos = error_position;
#undef APPEND_CHARACTER