projects
/
yasm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6e9cb
)
gas-preproc.c: Avoid casting away of const.
author
Peter Johnson
<peter@tortall.net>
Sat, 26 Dec 2009 04:38:27 +0000
(
04:38
-0000)
committer
Peter Johnson
<peter@tortall.net>
Sat, 26 Dec 2009 04:38:27 +0000
(
04:38
-0000)
svn path=/trunk/yasm/; revision=2247
modules/preprocs/gas/gas-preproc.c
patch
|
blob
|
history
diff --git
a/modules/preprocs/gas/gas-preproc.c
b/modules/preprocs/gas/gas-preproc.c
index 1ae0d4aa33d32a961096e128a41e3bd0e228d203..b6f01143c38e7bec7295897142de82ba73ca8c4b 100644
(file)
--- a/
modules/preprocs/gas/gas-preproc.c
+++ b/
modules/preprocs/gas/gas-preproc.c
@@
-61,7
+61,7
@@
typedef struct yasm_preproc_gas {
int depth;
int skip_depth;
- char *expr_string;
+ c
onst c
har *expr_string;
char *expr_symbol;
int expr_string_cursor;
@@
-388,7
+388,7
@@
static long eval_expr(yasm_preproc_gas *pp, const char *arg1)
tv.t_type = TOKEN_INVALID;
pp->expr_symbol = NULL;
- pp->expr_string =
(char *)
arg1;
+ pp->expr_string = arg1;
pp->expr_string_cursor = 0;
expr = evaluate(gas_scan, pp, &tv, pp, CRITICAL, gas_err, pp->defines);
intn = yasm_expr_get_intnum(&expr, 0);