]> err.no Git - yubikey-personalization/commitdiff
cast to correct data type
authorKlas Lindfors <klas@yubico.com>
Mon, 15 Apr 2013 07:17:14 +0000 (09:17 +0200)
committerKlas Lindfors <klas@yubico.com>
Mon, 15 Apr 2013 07:17:14 +0000 (09:17 +0200)
ykpers-json.c

index c9d7a9c1e1097a57e576dac400e4025181e2e6ae..31cf12c0af862f7497e914dc3a3b118c9414eb8a 100644 (file)
@@ -210,7 +210,7 @@ int ykp_json_import_cfg(const char *json, size_t len, YKP_CONFIG *cfg) {
                                                seed = json_object_get_int(jseed);
                                        }
                                }
-                               ykp_set_oath_imf(cfg, seed);
+                               ykp_set_oath_imf(cfg, (long unsigned int)seed);
                        }
                } else if(mode == MODE_CHAL_HMAC) {
                        ykp_set_tktflag_CHAL_RESP(cfg, true);