Skip to content

Commit 2493244

Browse files
authored
Merge pull request #2 from dying-will-bullet/fix-build
2 parents d0ce6d7 + 7bc87d2 commit 2493244

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.version = "0.1.0",
44
.dependencies = .{
55
.datetime = .{
6-
.url = "https://github.com/frmdstryr/zig-datetime/archive/fa702ed9979a98532b2973c123a1734f795629d0.tar.gz",
7-
.hash = "1220209352d22a38b0ec94f5bc1ab95dce7d77be65ed3f1d31b9cc58292e6279406b",
6+
.url = "https://github.com/Hanaasagi/zig-datetime/archive/d61796365c802f58bcec268924e6074628b43bf7.tar.gz",
7+
.hash = "12206379a2526c6a70a6501b33a06ad2d63794f55b4a1beaf2dec3f4d0a24b815341"
88
}
99
},
1010
.paths = .{""},

src/datetime.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn NextYear(dt: datetime.Datetime) !datetime.Datetime {
168168
}
169169

170170
pub fn PrevDay(dt: datetime.Datetime) !datetime.Datetime {
171-
var tdt = dt.shiftDays(-1);
171+
const tdt = dt.shiftDays(-1);
172172
var ndt = dt.shiftDays(-1);
173173
while (tdt.date.month == ndt.date.month) {
174174
ndt = ndt.shiftDays(-1);

src/expr.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub const CronField = struct {
215215
return set;
216216
}
217217

218-
var right = BitSet.initEmpty();
218+
const right = BitSet.initEmpty();
219219

220220
var first = end + step;
221221
var i = end;
@@ -252,8 +252,8 @@ pub const CronField = struct {
252252

253253
// e.g. minute => 0 ~ 60
254254
const range = tag.getRange();
255-
var range_start = range[0];
256-
var range_end = range[1];
255+
const range_start = range[0];
256+
const range_end = range[1];
257257

258258
var end_limit = range_end;
259259
actual_end.* = range_end;

0 commit comments

Comments
 (0)