diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-09-19 09:42:57 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-09-19 09:42:57 +0200 |
commit | 87288e173f09d573460a06d98466f84cba8f4b5c (patch) | |
tree | 2e0949deb7bc6c27e58feb870458dc1583cd4e07 /lib/gs/examples/calc2.erl | |
parent | adbad8f580825761238c647e181a07678f07d361 (diff) | |
parent | 2d13b9580f405541e46491743702eaaedf3f6e91 (diff) | |
download | otp-87288e173f09d573460a06d98466f84cba8f4b5c.tar.gz otp-87288e173f09d573460a06d98466f84cba8f4b5c.tar.bz2 otp-87288e173f09d573460a06d98466f84cba8f4b5c.zip |
Merge branch 'dev' into major
* dev:
gs: Update to modern type guards in examples
os_mon: Check results from fgets in cpu_sup
erts: Remove compiler warning in sys.c
Diffstat (limited to 'lib/gs/examples/calc2.erl')
-rw-r--r-- | lib/gs/examples/calc2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gs/examples/calc2.erl b/lib/gs/examples/calc2.erl index d28780de01..9969a6c40f 100644 --- a/lib/gs/examples/calc2.erl +++ b/lib/gs/examples/calc2.erl @@ -54,7 +54,7 @@ calc() -> calc_loop(Lbl,M,V,Op) -> receive - {gs,_,click,D,_} when integer(D) -> + {gs,_,click,D,_} when is_integer(D) -> digit_press(Lbl,M,V*10+D,Op); {gs,_,click,'C',_} -> c(Lbl,M,V,Op); |