summary refs log tree commit diff
path: root/mico-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'mico-store.c')
-rw-r--r--mico-store.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mico-store.c b/mico-store.c
index 6fe025a..f2dd221 100644
--- a/mico-store.c
+++ b/mico-store.c
@@ -78,7 +78,7 @@ putsigned(struct bitfile *bf, int count, int v)
 }
 
 void
-put1(struct bitfile *bf, int v)
+put1(struct bitfile *bf, int64_t v)
 {
         if (v == 0) {
                 putbits1_msb(bf, 1, 0x0);
@@ -101,7 +101,8 @@ put1(struct bitfile *bf, int v)
         }
 
         putbits1_msb(bf, 4, 0xf);
-        putsigned(bf, 32, v);
+        putsigned(bf, 32, v >> 32);
+        putbits1_msb(bf, 32, v & 0xffffffff);
 }