diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-09-16 17:05:46 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-09-16 17:05:46 +0200 |
commit | 2c79dee4b4f2a0a692cdf28399fc069eca18f07a (patch) | |
tree | 9d8ded2e9a49a6b59d4f7348a7a75123f0cbe5d0 /lib/gs/examples | |
parent | 211389b07fed7ac2bc1d7f713f0b42dc93cf615c (diff) | |
download | otp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.tar.gz otp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.tar.bz2 otp-2c79dee4b4f2a0a692cdf28399fc069eca18f07a.zip |
gs: Update to modern type guards in examples
Diffstat (limited to 'lib/gs/examples')
-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); |