diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-04-29 19:28:18 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-04-29 19:28:18 +0200 |
commit | 75545b200c1728f5511f82093f1d293f5cb7cde5 (patch) | |
tree | 27842d4801c2c391e92b09a129cdbb3309e19585 | |
parent | 9c4e832a367a416c6ca8f0f0b0947f08400bd74f (diff) | |
download | serial-barcode-scanner-75545b200c1728f5511f82093f1d293f5cb7cde5.tar.bz2 |
we use uint64 for user numbers
-rw-r--r-- | main.vala | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,8 +28,8 @@ public static int main(string[] args) { public static void interpret(string data) { if(data.has_prefix("USER ")) { string str_id = data.substring(5); - int id = int.parse(str_id); - stdout.printf("login: %d\n", id); + uint64 id = uint64.parse(str_id); + stdout.printf("login: %llu\n", id); } else { stdout.printf(" product: %s\n", data); } |