summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-02-27 05:03:14 +0100
committerIvan Maidanski <ivmai@mail.ru>2012-02-27 15:27:55 +0100
commit223493cedddc4683bcd5e51b379a3338ad083b23 (patch)
tree97d844a864562ee1aea22945a91cbe683249e022 /os_dep.c
parentdeb210c30d433b6b13b55e8e61431027c85ba232 (diff)
Fix 'volatile' keyword placement in GC_SysVGetDataStart
* os_dep.c (GC_SysVGetDataStart): Place "volatile" keyword for "result" local variable properly.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_dep.c b/os_dep.c
index ecd2524..070756a 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1849,7 +1849,7 @@ void GC_register_data_segments(void)
word next_page = ((text_end + (word)max_page_size - 1)
& ~((word)max_page_size - 1));
word page_offset = (text_end & ((word)max_page_size - 1));
- volatile char * result = (char *)(next_page + page_offset);
+ char * volatile result = (char *)(next_page + page_offset);
/* Note that this isn't equivalent to just adding */
/* max_page_size to &etext if &etext is at a page boundary */