diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-23 11:50:17 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-23 11:50:17 -0400 |
commit | 0dfa506ba6e999c511dd69b688e24ab8884f4a1a (patch) | |
tree | 36d0d288c25879e8aef7df16bc46f5ae3bac77e6 /support.cc | |
parent | 503e9ada12d38394381442a944d5c9da847800b6 (diff) | |
download | sgdisk-0dfa506ba6e999c511dd69b688e24ab8884f4a1a.tar.gz |
Added a couple of new verification checks and minor tweaks.
Diffstat (limited to 'support.cc')
-rw-r--r-- | support.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ uint64_t GetNumber(uint64_t low, uint64_t high, uint64_t def, const string & pro cin.getline(line, 255); if (!cin.good()) exit(5); - num = sscanf(line, "%ld", &response); + num = sscanf(line, "%lld", &response); if (num == 1) { // user provided a response if ((response < low) || (response > high)) cout << "Value out of range\n"; |