Skip to content

Commit c80b1ad

Browse files
committed
---
yaml --- r: 3892 b: refs/heads/master c: d39f84d h: refs/heads/master v: v3
1 parent 5f4b060 commit c80b1ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 336a4df778129f906714830f429ad9c009434083
2+
refs/heads/master: d39f84d8ecc8fc16cb5ae007891b3f7d86c08350

trunk/src/rt/rust_builtin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ last_os_error(rust_task *task) {
2222
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
2323
(LPTSTR) &buf, 0, NULL);
2424
if (!res) {
25-
task->fail(1);
25+
task->fail();
2626
return NULL;
2727
}
2828
#elif defined(_GNU_SOURCE)
@@ -36,7 +36,7 @@ last_os_error(rust_task *task) {
3636
char buf[BUF_BYTES];
3737
int err = strerror_r(errno, buf, sizeof(buf));
3838
if (err) {
39-
task->fail(1);
39+
task->fail();
4040
return NULL;
4141
}
4242
#endif
@@ -652,7 +652,7 @@ get_time(rust_task *task, uint32_t *sec, uint32_t *usec) {
652652
FILETIME fileTime;
653653
GetSystemTime(&systemTime);
654654
if (!SystemTimeToFileTime(&systemTime, &fileTime)) {
655-
task->fail(1);
655+
task->fail();
656656
return;
657657
}
658658

0 commit comments

Comments
 (0)