aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/tests/int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-libbu++/src/tests/int.cpp')
-rw-r--r--c++-libbu++/src/tests/int.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++-libbu++/src/tests/int.cpp b/c++-libbu++/src/tests/int.cpp
index 25ef831..fc411f4 100644
--- a/c++-libbu++/src/tests/int.cpp
+++ b/c++-libbu++/src/tests/int.cpp
@@ -9,6 +9,7 @@
9 9
10#include <bu/sio.h> 10#include <bu/sio.h>
11#include <bu/membuf.h> 11#include <bu/membuf.h>
12#include <bu/file.h>
12#include <stdlib.h> 13#include <stdlib.h>
13 14
14using namespace Bu; 15using namespace Bu;
@@ -31,12 +32,12 @@ void hexdump( char *dat, int iSize )
31 32
32int main( int argc, char *argv[] ) 33int main( int argc, char *argv[] )
33{ 34{
35 Bu::File mb("test.gats", Bu::File::WriteNew );
34 for( int j = 1; j < argc; j++ ) 36 for( int j = 1; j < argc; j++ )
35 { 37 {
36 int64_t i = strtoll( argv[j], NULL, 10 ); 38 int64_t i = strtoll( argv[j], NULL, 10 );
37 MemBuf mb;
38 Gats::Integer::writePackedInt( mb, i ); 39 Gats::Integer::writePackedInt( mb, i );
39 hexdump( mb.getString().getStr(), mb.getString().getSize() ); 40// hexdump( mb.getString().getStr(), mb.getString().getSize() );
40 } 41 }
41/* 42/*
42 sio << "Before: " << i << sio.nl; 43 sio << "Before: " << i << sio.nl;