diff options
| author | Roland Green <[email protected]> | 2019-08-26 16:28:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-26 16:28:51 -0400 |
| commit | 93e98042f7c4a589bf0e4c7cfcc639c316c8a4b2 (patch) | |
| tree | 1e32c07e932b3d3cc6b977e29a1327274f4f29a8 /src/cuda-sim/ptx_parser.cc | |
| parent | 6be23a1b36a3311c7dafc45a5e692e38cb351337 (diff) | |
| parent | b88c9e9a545960b7fcc1c373b60005612296158b (diff) | |
Merge pull request #28 from CoffeeBeforeArch/fix_warnings
Fix a bunch of outstanding warnings and undefined behavior. Fix single merge-error with Mahmoud's changes.
Diffstat (limited to 'src/cuda-sim/ptx_parser.cc')
| -rw-r--r-- | src/cuda-sim/ptx_parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 81b70af..a4f4a0c 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -421,7 +421,7 @@ void ptx_recognizer::add_identifier( const char *identifier, int array_dim, unsi assert( (num_bits%8) == 0 ); addr = g_current_symbol_table->get_sstarr_next(); addr_pad = pad_address(addr, num_bits/8, 128); - printf("from 0x%x to 0x%lx (sstarr memory space)\n", + printf("from 0x%llx to 0x%llx (sstarr memory space)\n", addr+addr_pad, addr+addr_pad + num_bits/8); fflush(stdout); |
