Skip to content

Commit 7691dca

Browse files
committed
Fix bug with int64 alignment on Linux x86-32
1 parent 96d0d51 commit 7691dca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cna.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2014.1.1 (Build 702U)" ts="2014-08-15 17:17:19">
2+
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2014.1.1 (Build 702U)" ts="2014-08-25 11:51:29">
33
<Class name="CNA.CNA">
44
<Super>%RegisteredObject</Super>
5-
<TimeChanged>63414,62093.250352</TimeChanged>
5+
<TimeChanged>63424,42665.798282</TimeChanged>
66
<TimeCreated>63383,58144.669569</TimeCreated>
77

88
<Property name="LibId">
@@ -194,10 +194,11 @@ Number of all available types in CNA.</Description>
194194
195195
set aligns = ""
196196
for i=0:1:(..#NTYPES - 2) {
197-
if (((i = ..#DOUBLE) || (i = ..#LONGDOUBLE)) && (os = "UNIX") && ($find(platform,"x86-32") '= 0)) {
197+
set size = $ASCII(..TypeSizes, i + 1)
198+
if ((size > 4) && (os = "UNIX") && ($find(platform,"x86-32") '= 0)) {
198199
set aligns = aligns _ $CHAR(4)
199200
} else {
200-
set aligns = aligns _ $CHAR($ASCII(..TypeSizes, i + 1))
201+
set aligns = aligns _ $CHAR(size)
201202
}
202203
}
203204
return aligns

0 commit comments

Comments
 (0)