fixed a bug in static_clause (thanks to Jose Santos)

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2218 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2008-04-14 21:20:36 +00:00
parent 3c3d0de2de
commit 3edc72b4c1
5 changed files with 21 additions and 11 deletions

View File

@@ -2353,8 +2353,8 @@ p_alarm(void)
new.it_interval.tv_sec = 0;
new.it_interval.tv_usec = 0;
new.it_value.tv_sec = IntegerOfTerm(ARG1);
new.it_value.tv_usec = IntegerOfTerm(ARG2);
new.it_value.tv_sec = IntegerOfTerm(t);
new.it_value.tv_usec = IntegerOfTerm(t2);
if (setitimer(ITIMER_REAL, &new, &old) < 0) {
#if HAVE_STRERROR
Yap_Error(OPERATING_SYSTEM_ERROR, ARG1, "setitimer: %s", strerror(errno));