From cfbfb477e675e05ed1513d455449c0eab2ae0df2 Mon Sep 17 00:00:00 2001 From: Rick Altherr Date: Tue, 12 Dec 2017 11:38:57 -0800 Subject: [PATCH] frame_address_decoder: Autodetect input address base (oct, dec, hex) Signed-off-by: Rick Altherr Signed-off-by: Tim 'mithro' Ansell --- tools/frame_address_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/frame_address_decoder.cc b/tools/frame_address_decoder.cc index 60410521..858c7232 100644 --- a/tools/frame_address_decoder.cc +++ b/tools/frame_address_decoder.cc @@ -16,7 +16,7 @@ int main(int argc, char *argv[]) { } for (uint32_t frame_address_raw; - (*input_stream) >> std::hex >> frame_address_raw; + (*input_stream) >> std::setbase(0) >> frame_address_raw; ) { xc7series::ConfigurationFrameAddress frame_address(frame_address_raw); std::cout << "["