Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make interp_argv be uint64_t* instead of char**

The pointers in interp_argv need to be uniformly 8 bytes each. This will
make m0_args_basic access the correct argument.
  • Loading branch information...
commit c571a6548af17a68a732c49083ead7ba7c39691c 1 parent 6811dd3
@nbrown nbrown authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/m0/c/m0_interp.c
4 src/m0/c/m0_interp.c
@@ -36,13 +36,13 @@ int
main( int argc, const char *argv[]) {
M0_Interp *interp = new_interp();
int i;
- char** interp_argv;
+ uint64_t* interp_argv;
if (!interp)
(*interp)[ARGC] = argc - 1;
- interp_argv = (char**) malloc((argc-1) * sizeof(char*));
+ interp_argv = (uint64_t*) malloc((argc-1) * sizeof(uint64_t));
// encode cli arguments as M0 strings, skipping the first (name of the interp)
for (i = 1; i < argc; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.