diff options
| author | Richard Brooksby | 2013-05-16 03:12:11 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2013-05-16 03:12:11 +0100 |
| commit | bb02f55b62ea785cb64bc60bebca8721dd52d886 (patch) | |
| tree | 82f07496859de3ab616ddb271a720aab4abfaee0 /mps/code/poolmv.c | |
| parent | 8acbc5780bb54ade61a95de766bb112a4a694894 (diff) | |
| download | emacs-bb02f55b62ea785cb64bc60bebca8721dd52d886.tar.gz emacs-bb02f55b62ea785cb64bc60bebca8721dd52d886.zip | |
Making clear the size of the array of args passed to varargs conversion methods.
Copied from Perforce
Change: 181845
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/poolmv.c')
| -rw-r--r-- | mps/code/poolmv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mps/code/poolmv.c b/mps/code/poolmv.c index 812d3099266..14cf2c12ce2 100644 --- a/mps/code/poolmv.c +++ b/mps/code/poolmv.c | |||
| @@ -184,7 +184,7 @@ static Bool MVSpanCheck(MVSpan span) | |||
| 184 | 184 | ||
| 185 | /* MVVarargs -- decode obsolete varargs */ | 185 | /* MVVarargs -- decode obsolete varargs */ |
| 186 | 186 | ||
| 187 | static void MVVarargs(ArgStruct args[], va_list varargs) | 187 | static void MVVarargs(ArgStruct args[MPS_ARGS_MAX], va_list varargs) |
| 188 | { | 188 | { |
| 189 | args[0].key = MPS_KEY_EXTEND_BY; | 189 | args[0].key = MPS_KEY_EXTEND_BY; |
| 190 | args[0].val.size = va_arg(varargs, Size); | 190 | args[0].val.size = va_arg(varargs, Size); |
| @@ -196,7 +196,7 @@ static void MVVarargs(ArgStruct args[], va_list varargs) | |||
| 196 | AVER(ArgListCheck(args)); | 196 | AVER(ArgListCheck(args)); |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | static void MVDebugVarargs(ArgStruct args[], va_list varargs) | 199 | static void MVDebugVarargs(ArgStruct args[MPS_ARGS_MAX], va_list varargs) |
| 200 | { | 200 | { |
| 201 | args[0].key = MPS_KEY_POOL_DEBUG_OPTIONS; | 201 | args[0].key = MPS_KEY_POOL_DEBUG_OPTIONS; |
| 202 | args[0].val.pool_debug_options = va_arg(varargs, mps_pool_debug_option_s *); | 202 | args[0].val.pool_debug_options = va_arg(varargs, mps_pool_debug_option_s *); |