~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/time/zoneinfo_read.go

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
                if n, ok = zonedata.big4(); !ok {
142
142
                        return nil, badData
143
143
                }
144
 
                zone[i].offset = int(n)
 
144
                zone[i].offset = int(int32(n))
145
145
                var b byte
146
146
                if b, ok = zonedata.byte(); !ok {
147
147
                        return nil, badData
174
174
                }
175
175
        }
176
176
 
177
 
        // Commited to succeed.
 
177
        if len(tx) == 0 {
 
178
                // Build fake transition to cover all time.
 
179
                // This happens in fixed locations like "Etc/GMT0".
 
180
                tx = append(tx, zoneTrans{when: -1 << 63, index: 0})
 
181
        }
 
182
 
 
183
        // Committed to succeed.
178
184
        l = &Location{zone: zone, tx: tx}
179
185
 
180
186
        // Fill in the cache with information about right now,
284
290
                //      42      off[4]
285
291
                //      46      name[namelen]
286
292
                //      46+namelen+xlen+fclen - next header
287
 
                //              
 
293
                //
288
294
                if get4(buf) != zcheader {
289
295
                        break
290
296
                }